lkml.org 
[lkml]   [1999]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: printk ?
On Sat, 27 Nov 1999, Siddharth Srivastav wrote:

> hi all,
> just a short query, why does printk("%f",x) not work for me?
> on the other hand, it is accepting all other format types (%s, , %d) etc.
> I am using 2.2.*
> Please Cc me as i am not on the list.
> Thanking you all.
>

Because floating-point is not allowed in the kernel. If you are planning
to use floating-point within kernel code, don't. The state of the FPU
(if it exists) is undefined within the kernel. If the floating point
emulation is being used, you end up with the equivalent of a double-fault
if you attempt such.

Cheers,
Dick Johnson

Penguin : Linux version 2.3.13 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.061 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site