Patch by Kenneth Johansson, 30 Jun 2003:
[platform/kernel/u-boot.git] / lib_generic / display_options.c
index ac04bff..512e898 100644 (file)
@@ -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);