Whamcloud - gitweb
ChangeLog, mke2fs.c, tune2fs.c:
authorTheodore Ts'o <tytso@mit.edu>
Tue, 17 Apr 2001 01:01:49 +0000 (01:01 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 17 Apr 2001 01:01:49 +0000 (01:01 +0000)
  mke2fs.c, tune2fs.c: Add newlines to error messages so that they look
   nicer.

misc/ChangeLog
misc/mke2fs.c
misc/tune2fs.c

index 4aeef8c..4742d8b 100644 (file)
@@ -1,3 +1,8 @@
+2001-04-16  Theodore Tso  <tytso@valinux.com>
+
+       * mke2fs.c, tune2fs.c: Add newlines to error messages so that they
+               look nicer.
+
 2001-03-26  Theodore Tso  <tytso@valinux.com>
 
        * mke2fs.8.in, tune2fs.8.in: Change man paegs to document that the
index 9f9f332..bf93636 100644 (file)
@@ -583,7 +583,7 @@ static void create_journal_dev(ext2_filsys fs)
                             &progress, &blk, &count);
        if (retval) {
                com_err("create_journal_dev", retval,
-                       "while zeroing journal device (block %u, count %d",
+                       "while zeroing journal device (block %u, count %d)",
                        blk, count);
                exit(1);
        }
@@ -1208,7 +1208,7 @@ int main (int argc, char *argv[])
                retval = ext2fs_add_journal_device(fs, jfs);
                if(retval) {
                        com_err (program_name, retval, 
-                                _("while trying to add journal to device %s"), 
+                                _("\n\twhile trying to add journal to device %s"), 
                                 journal_device);
                        exit(1);
                }
@@ -1232,7 +1232,7 @@ int main (int argc, char *argv[])
                                                  journal_flags);
                if (retval) {
                        com_err (program_name, retval,
-                                _("while trying to create journal"));
+                                _("\n\twhile trying to create journal"));
                        exit(1);
                }
                if (!quiet)
index 401e27c..096726d 100644 (file)
@@ -283,7 +283,7 @@ static void add_journal(ext2_filsys fs)
                                     fs->blocksize, unix_io_manager, &jfs);
                if (retval) {
                        com_err(program_name, retval,
-                               _("while trying to open journal device %s\n"),
+                               _("\n\twhile trying to open journal on %s\n"),
                                journal_device);
                        exit(1);
                }
@@ -310,10 +310,10 @@ static void add_journal(ext2_filsys fs)
                if (retval) {
                        printf("\n");
                        com_err(program_name, retval,
-                               _("while trying to create journal"));
+                               _("\n\twhile trying to create journal file"));
                        exit(1);
-               }
-               printf(_("done\n"));
+               } else
+                       printf(_("done\n"));
                /*
                 * If the filesystem wasn't mounted, we need to force
                 * the block group descriptors out.