Messages in this thread | | | Date | Sun, 28 Nov 1999 17:12:39 -0500 (EST) | From | "Richard B. Johnson" <> | Subject | Re: 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/
| |