Commit abff75439fd6e9b5774e5984d4c3b3b59cb3038b

Authored by Randolph Chung
Committed by Kyle McMartin
1 parent e55fb3e787

[PARISC] Avoid use of floating point in the kernel

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/parisc/pdc_stable.c
... ... @@ -536,7 +536,7 @@
536 536  
537 537 out += sprintf(out, "Memory tested: ");
538 538 if ((result & 0x0F) < 0x0E)
539   - out += sprintf(out, "%.3f MB", 0.256*(1<<(result & 0x0F)));
  539 + out += sprintf(out, "%d kB", (1<<(result & 0x0F))*256);
540 540 else
541 541 out += sprintf(out, "All");
542 542 out += sprintf(out, "\n");