From: Benno Schulenberg <bensberg@justemail.net>
To: "Util-Linux" <util-linux@vger.kernel.org>
Cc: "Petr Písař" <petr.pisar@atlas.cz>
Subject: [patch] for "Mistakes in messages" reported by Petr Pisar
Date: Wed, 05 Jun 2013 22:08:09 +0200 [thread overview]
Message-ID: <1370462889.27341.140661240351977.05B18AA0@webmail.messagingengine.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 549 bytes --]
Hi,
Attached patch fixes most of the issues reported by Petr Pisar a
week ago. (Cannot follow up to his message; I wasn't subscribed.)
Some of the things he reported were already fixed, and one thing
is not an error, I think: "Partition overlap on the disk." -- here the
word "Partition" is an adjective and "overlap" a noun. "Partitions
overlap on the disk." doesn't make it any clearer, in my opinion.
Regards,
Benno
--
http://www.fastmail.fm - Faster than the air-speed velocity of an
unladen european swallow
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-textual-improve-clarity-of-some-error-messages.patch --]
[-- Type: text/x-patch; name="0001-textual-improve-clarity-of-some-error-messages.patch", Size: 4355 bytes --]
From fe35071256e0bd55da2c16b269d6e225c794e420 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@justemail.net>
Date: Wed, 5 Jun 2013 21:58:13 +0200
Subject: [PATCH] textual: improve clarity of some error messages
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Reported-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
---
disk-utils/mkfs.cramfs.c | 6 +++---
disk-utils/mkfs.minix.c | 2 +-
login-utils/sulogin.c | 6 +++---
misc-utils/findmnt.c | 2 +-
sys-utils/losetup.c | 6 +++---
5 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/disk-utils/mkfs.cramfs.c b/disk-utils/mkfs.cramfs.c
index 23dcfef..fdc2cae 100644
--- a/disk-utils/mkfs.cramfs.c
+++ b/disk-utils/mkfs.cramfs.c
@@ -736,7 +736,7 @@ int main(int argc, char **argv)
opt_errors = 1;
break;
case 'e':
- opt_edition = strtou32_or_err(optarg, _("edition number argument failed"));
+ opt_edition = strtou32_or_err(optarg, _("invalid edition number argument"));
break;
case 'N':
if (strcmp(optarg, "big") == 0)
@@ -746,8 +746,8 @@ int main(int argc, char **argv)
else if (strcmp(optarg, "host") == 0)
/* default */ ;
else
- errx(MKFS_EX_USAGE, _("invalid endianness given."
- " Must be 'big', 'little', or 'host'"));
+ errx(MKFS_EX_USAGE, _("invalid endianness given;"
+ " must be 'big', 'little', or 'host'"));
break;
case 'i':
opt_image = optarg;
diff --git a/disk-utils/mkfs.minix.c b/disk-utils/mkfs.minix.c
index 3a1617b..639ace7 100644
--- a/disk-utils/mkfs.minix.c
+++ b/disk-utils/mkfs.minix.c
@@ -482,7 +482,7 @@ static void setup_tables(void) {
super_block_buffer = calloc(1, MINIX_BLOCK_SIZE);
if (!super_block_buffer)
- err(MKFS_EX_ERROR, _("%s: unable to alloc buffer for superblock"),
+ err(MKFS_EX_ERROR, _("%s: unable to allocate buffer for superblock"),
device_name);
memset(boot_block_buffer,0,512);
diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c
index 32ae9a2..352c781 100644
--- a/login-utils/sulogin.c
+++ b/login-utils/sulogin.c
@@ -484,13 +484,13 @@ static void doprompt(const char *crypted, struct console *con)
if (crypted[0])
fprintf(con->file, _("Give root password for login: "));
else
- fprintf(con->file, _("Press enter for login: "));
+ fprintf(con->file, _("Press Enter for login: "));
#else
if (crypted[0])
fprintf(con->file, _("Give root password for maintenance\n"));
else
- fprintf(con->file, _("Press enter for maintenance"));
- fprintf(con->file, _("(or type Control-D to continue): "));
+ fprintf(con->file, _("Press Enter for maintenance"));
+ fprintf(con->file, _("(or press Control-D to continue): "));
#endif
fflush(con->file);
err:
diff --git a/misc-utils/findmnt.c b/misc-utils/findmnt.c
index 4a3e760..48c807c 100644
--- a/misc-utils/findmnt.c
+++ b/misc-utils/findmnt.c
@@ -133,7 +133,7 @@ static struct colinfo infos[FINDMNT_NCOLUMNS] = {
[COL_ID] = { "ID", 2, TT_FL_RIGHT, N_("mount ID") },
[COL_OPT_FIELDS] = { "OPT-FIELDS", 0.10, TT_FL_TRUNC, N_("optional mount fields") },
[COL_PROPAGATION] = { "PROPAGATION", 0.10, 0, N_("VFS propagation flags") },
- [COL_FREQ] = { "FREQ", 1, TT_FL_RIGHT, N_("dump(8) frequency in days [fstab only]") },
+ [COL_FREQ] = { "FREQ", 1, TT_FL_RIGHT, N_("dump(8) period in days [fstab only]") },
[COL_PASSNO] = { "PASSNO", 1, TT_FL_RIGHT, N_("pass number on parallel fsck(8) [fstab only]") }
};
diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c
index 90e75eb..68ff43c 100644
--- a/sys-utils/losetup.c
+++ b/sys-utils/losetup.c
@@ -396,11 +396,11 @@ static void warn_size(const char *filename, uint64_t size)
}
if (size < 512)
- warnx(_("%s: warning: file smaller than 512 bytes, the loop device "
- "maybe be useless or invisible for system tools."),
+ warnx(_("%s: Warning: file is smaller than 512 bytes; the loop device "
+ "may be useless or invisible for system tools."),
filename);
else if (size % 512)
- warnx(_("%s: warning: file does not fit into a 512-byte sector "
+ warnx(_("%s: Warning: file does not fit into a 512-byte sector; "
"the end of the file will be ignored."),
filename);
}
--
1.7.0.4
next reply other threads:[~2013-06-05 20:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-05 20:08 Benno Schulenberg [this message]
2013-06-06 5:04 ` [patch] for "Mistakes in messages" reported by Petr Pisar Petr Pisar
2013-06-06 19:20 ` Benno Schulenberg
2013-06-07 10:30 ` 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=1370462889.27341.140661240351977.05B18AA0@webmail.messagingengine.com \
--to=bensberg@justemail.net \
--cc=petr.pisar@atlas.cz \
--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