summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenno Schulenberg2013-06-05 21:58:13 +0200
committerKarel Zak2013-06-07 12:29:44 +0200
commit97b820bffdd915893c7e6eeb9cbdcbf3388862fa (patch)
tree86b7415ce229d0113fbdf9d98d155458b07de2a5
parentcal: fix few type mismatches (diff)
downloadkernel-qcow2-util-linux-97b820bffdd915893c7e6eeb9cbdcbf3388862fa.tar.gz
kernel-qcow2-util-linux-97b820bffdd915893c7e6eeb9cbdcbf3388862fa.tar.xz
kernel-qcow2-util-linux-97b820bffdd915893c7e6eeb9cbdcbf3388862fa.zip
textual: improve clarity of some error messages
Reported-by: Petr Písař <petr.pisar@atlas.cz> Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
-rw-r--r--disk-utils/mkfs.cramfs.c6
-rw-r--r--disk-utils/mkfs.minix.c2
-rw-r--r--login-utils/sulogin.c6
-rw-r--r--misc-utils/findmnt.c2
-rw-r--r--sys-utils/losetup.c6
5 files changed, 11 insertions, 11 deletions
diff --git a/disk-utils/mkfs.cramfs.c b/disk-utils/mkfs.cramfs.c
index 23dcfeff9..fdc2cae29 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 3a1617bd6..639ace7bc 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 32ae9a20d..352c7818e 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 4a3e760e7..48c807caf 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 287761a3c..5dd3c6c3e 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);
}