All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/1] common/image.c: prefixes for binary multiples
@ 2017-01-04 13:04 Heinrich Schuchardt
  2017-01-21  3:37 ` [U-Boot] [U-Boot, " Tom Rini
  0 siblings, 1 reply; 3+ messages in thread
From: Heinrich Schuchardt @ 2017-01-04 13:04 UTC (permalink / raw)
  To: u-boot

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 <xypron.glpk@gmx.de>
---
 common/image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/image.c b/common/image.c
index 8c35327745..31317a581e 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
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [U-Boot, 1/1] common/image.c: prefixes for binary multiples
  2017-01-04 13:04 [U-Boot] [PATCH 1/1] common/image.c: prefixes for binary multiples Heinrich Schuchardt
@ 2017-01-21  3:37 ` Tom Rini
  0 siblings, 0 replies; 3+ messages in thread
From: Tom Rini @ 2017-01-21  3:37 UTC (permalink / raw)
  To: u-boot

On Wed, Jan 04, 2017 at 02:04:44PM +0100, xypron.glpk at gmx.de wrote:

> 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 <xypron.glpk@gmx.de>

With a minor reword, applied to u-boot/master, thanks!

-- 
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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH 1/1] common/image.c: prefixes for binary multiples
       [not found] <20170104124542.28869-1-xypron.glpk@gmx.de>
@ 2017-01-14 17:13 ` Simon Glass
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Glass @ 2017-01-14 17:13 UTC (permalink / raw)
  To: u-boot

On 4 January 2017 at 05:45, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
> 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 <xypron.glpk@gmx.de>
> ---
>  common/image.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Ah, progress. I think :-)

Reviewed-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-21  3:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-04 13:04 [U-Boot] [PATCH 1/1] common/image.c: prefixes for binary multiples Heinrich Schuchardt
2017-01-21  3:37 ` [U-Boot] [U-Boot, " Tom Rini
     [not found] <20170104124542.28869-1-xypron.glpk@gmx.de>
2017-01-14 17:13 ` [U-Boot] [PATCH " Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.