diff options
author | Randolph Chung <tausq@parisc-linux.org> | 2005-10-21 22:57:13 -0400 |
---|---|---|
committer | Kyle McMartin <kyle@parisc-linux.org> | 2005-10-21 22:57:13 -0400 |
commit | abff75439fd6e9b5774e5984d4c3b3b59cb3038b (patch) | |
tree | 2388b814d69621ce9d3ee0d37776f51b4aa86133 /drivers/parisc/pdc_stable.c | |
parent | e55fb3e787ccfbbdb3198ec859d5689e5413c7bd (diff) |
[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>
Diffstat (limited to 'drivers/parisc/pdc_stable.c')
-rw-r--r-- | drivers/parisc/pdc_stable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/parisc/pdc_stable.c b/drivers/parisc/pdc_stable.c index 67c8f3b44848..273a74179720 100644 --- a/drivers/parisc/pdc_stable.c +++ b/drivers/parisc/pdc_stable.c | |||
@@ -536,7 +536,7 @@ pdcs_info_read(struct subsystem *entry, char *buf) | |||
536 | 536 | ||
537 | out += sprintf(out, "Memory tested: "); | 537 | out += sprintf(out, "Memory tested: "); |
538 | if ((result & 0x0F) < 0x0E) | 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 | else | 540 | else |
541 | out += sprintf(out, "All"); | 541 | out += sprintf(out, "All"); |
542 | out += sprintf(out, "\n"); | 542 | out += sprintf(out, "\n"); |