Umm, just like printk, rtl_printf doesn't support floats.  Rationale:
floats don't (normally) belong in the kernel.  However, as we all know,
for scientific or other applications using rt-linux, that design choice
doesn't help us much... :( I myself have half a mind to patch rtl_printf
myself so that I can printf some floats.  It shouldn't be too tough.. :/

On Wed, 14 Nov 2001, Tim Beamish wrote:

> Can we do this in a real time thread:
>
> float x = 1.5;
> rtl_printf("%f", x);
>
> It's printing this for me:
> x = %f
>
> I've given the thread permission to do floating point arithmetic but it
> shouldn't matter in this case.
>
> Tim
>
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
>

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to