projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Patch by Kenneth Johansson, 30 Jun 2003:
[platform/kernel/u-boot.git]
/
lib_generic
/
display_options.c
diff --git
a/lib_generic/display_options.c
b/lib_generic/display_options.c
index
ac04bff
..
512e898
100644
(file)
--- a/
lib_generic/display_options.c
+++ b/
lib_generic/display_options.c
@@
-54,6
+54,11
@@
void print_size (ulong size, const char *s)
m = (10 * (size - (n * d)) + (d / 2) ) / d;
+ if (m >= 10) {
+ m -= 10;
+ n += 1;
+ }
+
printf ("%2ld", n);
if (m) {
printf (".%ld", m);