From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] [v2] allow print_size to print large numbers on 32-bit systems
Date: Mon, 12 Apr 2010 14:54:58 -0500 [thread overview]
Message-ID: <4BC37A92.4020704@freescale.com> (raw)
In-Reply-To: <1271101428-6548-1-git-send-email-timur@freescale.com>
Timur Tabi wrote:
> Modify print_size() so that it can accept numbers larger than 4GB on 32-bit
> systems.
>
> Add support for display terabyte, petabyte, and exabyte sizes. Change the
> output to use International Electrotechnical Commission binary prefix standard.
>
> Signed-off-by: Timur Tabi <timur@freescale.com>
> ---
> lib_generic/display_options.c | 22 +++++++++++-----------
> 1 files changed, 11 insertions(+), 11 deletions(-)
>
> diff --git a/lib_generic/display_options.c b/lib_generic/display_options.c
> index da17a62..53b154d 100644
> --- a/lib_generic/display_options.c
> +++ b/lib_generic/display_options.c
> @@ -40,22 +40,22 @@ int display_options (void)
>
> /*
> * print sizes as "xxx kB", "xxx.y kB", "xxx MB", "xxx.y MB",
> - * xxx GB, or xxx.y GB as needed; allow for optional trailing string
> + * xxx GB, xxx.y GB, etc as needed; allow for optional trailing string
[snip]
> - printf (" %cB%s", c, s);
> + printf (" %ciB%s", c, s);
Comment should be updated to match the code.
-Scott
prev parent reply other threads:[~2010-04-12 19:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-12 19:43 [U-Boot] [PATCH] [v2] allow print_size to print large numbers on 32-bit systems Timur Tabi
2010-04-12 19:54 ` Scott Wood [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BC37A92.4020704@freescale.com \
--to=scottwood@freescale.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox