[PARISC] Avoid use of floating point in the kernel
authorRandolph Chung <tausq@parisc-linux.org>
Sat, 22 Oct 2005 02:57:13 +0000 (22:57 -0400)
committerKyle McMartin <kyle@parisc-linux.org>
Sat, 22 Oct 2005 02:57:13 +0000 (22:57 -0400)
don't use *printf %f in the kernel, mm'kay?

Signed-off-by: Randolph Chung <tausq@parisc-linux.org>
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
drivers/parisc/pdc_stable.c

index 67c8f3b44848d71fd7d35e55d8f484445346d379..273a741797204784fa6be5e89f92a88e8b9e7615 100644 (file)
@@ -536,7 +536,7 @@ pdcs_info_read(struct subsystem *entry, char *buf)
 
        out += sprintf(out, "Memory tested: ");
        if ((result & 0x0F) < 0x0E)
-               out += sprintf(out, "%.3f MB", 0.256*(1<<(result & 0x0F)));
+               out += sprintf(out, "%d kB", (1<<(result & 0x0F))*256);
        else
                out += sprintf(out, "All");
        out += sprintf(out, "\n");