common/image.c: prefixes for binary multiples
PATCH 1/1 common/image.c: prefixes for binary multiples
IEC 80000-13:2008 Quantities and units
Part 13: Information science and technology
defines the prefixes to use for binary multiples.
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 <[email protected]>
--- common/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
common/image.c +1 -1
@@ -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
Signature · 1 line
2.11.0
PATCH 1/1 common/image.c: prefixes for binary multiples
Quoted 11 lines · xypron.glpk at gmx.de
IEC 80000-13:2008 Quantities and units
Part 13: Information science and technologydefines the prefixes to use for binary multiples.
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 <[email protected]>
With a minor reword, applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170120/a5387b60/attachment.sig>