Commit cec85d4e002d9b6aa0f98bec50e9fa09dd013cdd

Authored by xypron.glpk@gmx.de
Committed by Tom Rini
1 parent d3e8f63026

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -561,7 +561,7 @@
561 561 printf("%d Bytes = ", size);
562 562 print_size(size, "\n");
563 563 #else
564   - printf("%d Bytes = %.2f kB = %.2f MB\n",
  564 + printf("%d Bytes = %.2f KiB = %.2f MiB\n",
565 565 size, (double)size / 1.024e3,
566 566 (double)size / 1.048576e6);
567 567 #endif