[okl4-developer] printf'ing double variables
Geoffrey Lee
glee at ok-labs.com
Tue May 27 22:40:46 EST 2008
On Tue, May 27, 2008 at 09:49:50PM +0930, Peter Nguyen wrote:
> Nelson,
Hi Peter,
I just checked and support for printing out doubles seems to be missing.
The file to check is libs/c/src/format.c. It shouldn't be too hard
to do a rudimentary version, but doing the full set of modifiers for
the floating point printout might be more involved.
-gl
>
> So to print out the double, i use %f. This seems to not work, which
> suggests that maybe i should be using a different format specifier.
> As well, the printf call is in the user level code.
>
> -----------------------------------------------------
> Peter Nguyen
> Jacaranda Research Group
>
>
>
> On 27/05/2008, at 5:04 PM, Nelson Tam wrote:
>
> > Hi Peter,
> >
> > The libc printf support in 1.4.1.1 and the latest 2.1 release are
> > essentially the same. That said, what format string are you using
> > to print the doubleword at the moment?
> >
> > Also just to confirm, is this printf call in the user level code, or
> > in the kernel?
> >
> > Nelson.
> >
> > On 27/05/2008, at 3:32 PM, Peter Nguyen wrote:
> >
> >>
> >> At the moment, i am using v1.4.1.1 of OKL4 and i've noticed that
> >> there
> >> is no "support" (for want of a better word) for printing out the
> >> values of any double variables (ie. it prints a blank). I was
> >> wondering whether this is actually supported at all in the latest
> >> version. Doing a diff with the two format.c files (printf calls
> >> format_string(...)) and there doesn't seem to be any significant
> >> differences between the two files.
> >>
> >> Now it could well be the case that i'm doing something entirely wrong
> >> so help on this would be great.
> >
> > --
> > (nt)
> >
> > Nelson Tam
> >
>
>
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
>
--
More information about the Developer
mailing list