summaryrefslogtreecommitdiff
path: root/lib_generic
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-07-01 21:06:45 +0000
committerwdenk <wdenk>2003-07-01 21:06:45 +0000
commit0d4983930a3559be92452761cfa268ee9d0f2773 (patch)
treecfb77c1274a959cde007a7ac4e18b4b0d67bd253 /lib_generic
parentb37c7e5e5c3c80c68f49a31c4308b159bb5bda1a (diff)
downloadu-boot-0d4983930a3559be92452761cfa268ee9d0f2773.tar.gz
u-boot-0d4983930a3559be92452761cfa268ee9d0f2773.tar.bz2
u-boot-0d4983930a3559be92452761cfa268ee9d0f2773.zip
Patch by Kenneth Johansson, 30 Jun 2003:
get rid of MK_CMD_ENTRY macro; update doc/README.command
Diffstat (limited to 'lib_generic')
-rw-r--r--lib_generic/display_options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib_generic/display_options.c b/lib_generic/display_options.c
index ac04bff17a..512e8980d9 100644
--- 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);