diff options
Diffstat (limited to 'ubi-utils/src/common.c')
-rw-r--r-- | ubi-utils/src/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ubi-utils/src/common.c b/ubi-utils/src/common.c index 7ed1ade..f8110c3 100644 --- a/ubi-utils/src/common.c +++ b/ubi-utils/src/common.c @@ -79,7 +79,7 @@ void ubiutils_print_bytes(long long bytes, int bracket) printf("%s%.1f GiB", p, (double)bytes / (1024 * 1024 * 1024)); else if (bytes > 1024 * 1024) printf("%s%.1f MiB", p, (double)bytes / (1024 * 1024)); - else if (bytes > 1024) + else if (bytes > 1024 && bytes != 0) printf("%s%.1f KiB", p, (double)bytes / 1024); else return; |