Commit abff7543 authored by Randolph Chung's avatar Randolph Chung Committed by Kyle McMartin

[PARISC] Avoid use of floating point in the kernel

don't use *printf %f in the kernel, mm'kay?
Signed-off-by: default avatarRandolph Chung <tausq@parisc-linux.org>
Signed-off-by: default avatarKyle McMartin <kyle@parisc-linux.org>
parent e55fb3e7
...@@ -536,7 +536,7 @@ pdcs_info_read(struct subsystem *entry, char *buf) ...@@ -536,7 +536,7 @@ pdcs_info_read(struct subsystem *entry, char *buf)
out += sprintf(out, "Memory tested: "); out += sprintf(out, "Memory tested: ");
if ((result & 0x0F) < 0x0E) if ((result & 0x0F) < 0x0E)
out += sprintf(out, "%.3f MB", 0.256*(1<<(result & 0x0F))); out += sprintf(out, "%d kB", (1<<(result & 0x0F))*256);
else else
out += sprintf(out, "All"); out += sprintf(out, "All");
out += sprintf(out, "\n"); out += sprintf(out, "\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment