Skip to content
Snippets Groups Projects
Commit cec85d4e authored by xypron.glpk@gmx.de's avatar xypron.glpk@gmx.de Committed by Tom Rini
Browse files

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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent d3e8f630
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment