From: "Pádraig Brady" <P@draigBrady.com>
To: Bernhard Voelker <mail@bernhard-voelker.de>
Cc: Karel Zak <kzak@redhat.com>,
"util-linux@vger.kernel.org" <util-linux@vger.kernel.org>,
Davidlohr Bueso <dave@gnu.org>
Subject: Re: [PATCH 5/8] sfdisk: fix silly mbyte typo
Date: Wed, 18 Apr 2012 11:46:45 +0100 [thread overview]
Message-ID: <4F8E9B95.5010303@draigBrady.com> (raw)
In-Reply-To: <4F8E6429.2030408@bernhard-voelker.de>
On 04/18/2012 07:50 AM, Bernhard Voelker wrote:
>
>
> On 04/17/2012 04:59 PM, Bernhard Voelker wrote:
>>
>>
>> On 04/17/2012 04:48 PM, Karel Zak wrote:
>>> yep, my +1 was about s/mebibytes/MiB/, I have overlooked the
>>> 1024*1024 math in the patch. Pádraig is right, (s)fdisk uses 1024
>>> byte blocks in output
>>
>> so KiB would be right?
>>
>>> (probably too keep things more confusing ;-)
>>
>> mission accomplished ...
>>
>> Bye,
>> Berny
>>
>
> ah, that part refers to the "#blocks" column!
>
> The problem starts with the "=" after "Units". A colon would
> maybe be more appropriate: then we could use the equal sign
> like in the following.
>
> What do you think?
>
> Have a nice day,
> Berny
>
>
>>From 1c59d9ca4d18d795de354003d0059dc593c6a99b Mon Sep 17 00:00:00 2001
> From: Bernhard Voelker <mail@bernhard-voelker.de>
> Date: Wed, 18 Apr 2012 08:47:29 +0200
> Subject: [PATCH] sfdisk (out_partition_header): improve F_MEGABYTE header
>
> Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
> ---
> fdisk/sfdisk.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/fdisk/sfdisk.c b/fdisk/sfdisk.c
> index 95e5828..c14d127 100644
> --- a/fdisk/sfdisk.c
> +++ b/fdisk/sfdisk.c
> @@ -912,24 +912,24 @@ out_partition_header(char *dev, int format, struct geometry G) {
> G.cylindersize ? _("cylinders") : _("sectors"));
> case F_CYLINDER:
> if (G.cylindersize) {
> - printf(_("Units = cylinders of %lu bytes, blocks of 1024 bytes"
> + printf(_("Units: cylinders of %lu bytes, blocks of 1024 bytes"
> ", counting from %d\n\n"), G.cylindersize << 9, increment);
> printf(_(" Device Boot Start End #cyls #blocks Id System\n"));
> break;
> }
> /* fall through */
> case F_SECTOR:
> - printf(_("Units = sectors of 512 bytes, counting from %d\n\n"),
> + printf(_("Units: sectors of 512 bytes, counting from %d\n\n"),
> increment);
> printf(_(" Device Boot Start End #sectors Id System\n"));
> break;
> case F_BLOCK:
> - printf(_("Units = blocks of 1024 bytes, counting from %d\n\n"),
> + printf(_("Units: blocks of 1024 bytes, counting from %d\n\n"),
> increment);
> printf(_(" Device Boot Start End #blocks Id System\n"));
> break;
> case F_MEGABYTE:
> - printf(_("Units = mebibytes of 1048576 bytes, blocks of 1024 bytes"
> + printf(_("Units: 1MiB = 1024*1024 bytes, blocks of 1024 bytes"
> ", counting from %d\n\n"), increment);
> printf(_(" Device Boot Start End MiB #blocks Id System\n"));
> break;
+1
next prev parent reply other threads:[~2012-04-18 10:46 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-17 8:42 [PATCH] sfdisk (out_partition_header): improve F_MEGABYTE header [WAS: [PATCH 5/8] sfdisk: fix silly mbyte typo] Bernhard Voelker
2012-04-17 13:56 ` [PATCH 5/8] sfdisk: fix silly mbyte typo Pádraig Brady
2012-04-17 14:14 ` Bernhard Voelker
2012-04-17 14:32 ` Pádraig Brady
2012-04-17 14:48 ` Karel Zak
2012-04-17 14:59 ` Bernhard Voelker
2012-04-18 6:50 ` Bernhard Voelker
2012-04-18 10:46 ` Pádraig Brady [this message]
2012-04-23 10:48 ` Karel Zak
-- strict thread matches above, loose matches on Subject: below --
2012-04-16 9:44 Davidlohr Bueso
2012-04-16 9:53 ` Voelker, Bernhard
2012-04-16 10:13 ` Davidlohr Bueso
2012-04-16 10:22 ` Voelker, Bernhard
2012-04-16 10:27 ` Karel Zak
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=4F8E9B95.5010303@draigBrady.com \
--to=p@draigbrady.com \
--cc=dave@gnu.org \
--cc=kzak@redhat.com \
--cc=mail@bernhard-voelker.de \
--cc=util-linux@vger.kernel.org \
/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