]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
textual: improve clarity of some error messages
authorBenno Schulenberg <bensberg@justemail.net>
Wed, 5 Jun 2013 19:58:13 +0000 (21:58 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 7 Jun 2013 10:29:44 +0000 (12:29 +0200)
Reported-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
disk-utils/mkfs.cramfs.c
disk-utils/mkfs.minix.c
login-utils/sulogin.c
misc-utils/findmnt.c
sys-utils/losetup.c

index 23dcfeff9885ae951395c23d3cee49b7d3c12a5d..fdc2cae292c64b8f980e11e662db1d971cf9500e 100644 (file)
@@ -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;
index 3a1617bd6ee493ee513257116a38cf0847a00364..639ace7bc5fe5b885b29edb2bbf52623d227c2e6 100644 (file)
@@ -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);
index 32ae9a20d1b101f125036feca2a15ef0471e5d73..352c7818efa4a82b4d07a1955a43d6f2b1ee6701 100644 (file)
@@ -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:
index 4a3e760e76372c7091da065d9de30972e401aff9..48c807caf375585ddbd9435cde3297099119f068 100644 (file)
@@ -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]") }
 };
 
index 287761a3cc83fea671bb4591863851240ccc6af5..5dd3c6c3eb8e6ece3f9c085050b2a5eb8aef831d 100644 (file)
@@ -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);
 }