> Hi, all:
> Has anybody used the printk to output a floating point value?
> I use printk("%f",value), but it does not work.
> Thanks in advance for any help.
You can't (in general) do floating point anything in the kernel. There
are processors out there without an FPU, so it's a big nono. In order to
to even use floating point, you have to use register save and restores.
Jeremy
-- Jeremy Katz http://linuxpower.org
- 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/