diff options
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | 2017-01-04 14:04:44 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-01-20 15:37:59 -0500 |
commit | cec85d4e002d9b6aa0f98bec50e9fa09dd013cdd (patch) | |
tree | ce1f7da1f87714f4cbc5df898c480600557a11a7 | |
parent | d3e8f63026fa37dc09dcfd803df81e5452f87df9 (diff) | |
download | u-boot-imx-cec85d4e002d9b6aa0f98bec50e9fa09dd013cdd.zip u-boot-imx-cec85d4e002d9b6aa0f98bec50e9fa09dd013cdd.tar.gz u-boot-imx-cec85d4e002d9b6aa0f98bec50e9fa09dd013cdd.tar.bz2 |
common/image.c: Use correct suffixes for binary sizes
IEC 80000-13:2008 Quantities and units
Part 13: Information science and technology
defines the prefixes to use for binary multiples.
So instead of writing
Data Size: 6726132 Bytes = 6568.49 kB = 6.41 MB
in dumpimage we should write
Data Size: 6726132 Bytes = 6568.49 KiB = 6.41 MiB.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r-- | common/image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image.c b/common/image.c index 89b3ef6..0f88984 100644 --- a/common/image.c +++ b/common/image.c @@ -561,7 +561,7 @@ void genimg_print_size(uint32_t size) printf("%d Bytes = ", size); print_size(size, "\n"); #else - printf("%d Bytes = %.2f kB = %.2f MB\n", + printf("%d Bytes = %.2f KiB = %.2f MiB\n", size, (double)size / 1.024e3, (double)size / 1.048576e6); #endif |