projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e55fb3e
)
[PARISC] Avoid use of floating point in the kernel
author
Randolph Chung
<tausq@parisc-linux.org>
Sat, 22 Oct 2005 02:57:13 +0000
(22:57 -0400)
committer
Kyle 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
patch
|
blob
|
history
diff --git
a/drivers/parisc/pdc_stable.c
b/drivers/parisc/pdc_stable.c
index 67c8f3b44848d71fd7d35e55d8f484445346d379..273a741797204784fa6be5e89f92a88e8b9e7615 100644
(file)
--- a/
drivers/parisc/pdc_stable.c
+++ b/
drivers/parisc/pdc_stable.c
@@
-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");