Skip to content

Commit

Permalink
[PARISC] Avoid use of floating point in the kernel
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randolph Chung authored and Kyle McMartin committed Oct 22, 2005
1 parent e55fb3e commit abff754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/parisc/pdc_stable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit abff754

Please sign in to comment.