Author: bz
Date: Wed Oct 17 16:54:13 2018
New Revision: 339414
URL: https://svnweb.freebsd.org/changeset/base/339414

Log:
  Fix spelling of an error message and add warning to another error
  case in tunefs(8).
  
  Reviewed by:          imp (2017 version of the same diff)
  Approved by:          re (gjb)
  Differential Revision:        https://reviews.freebsd.org/D10046

Modified:
  head/sbin/tunefs/tunefs.c

Modified: head/sbin/tunefs/tunefs.c
==============================================================================
--- head/sbin/tunefs/tunefs.c   Wed Oct 17 16:49:11 2018        (r339413)
+++ head/sbin/tunefs/tunefs.c   Wed Oct 17 16:54:13 2018        (r339414)
@@ -377,7 +377,7 @@ main(int argc, char *argv[])
                                warnx("%s cannot be enabled until fsck is run",
                                    name);
                        } else if (journal_alloc(Svalue) != 0) {
-                               warnx("%s can not be enabled", name);
+                               warnx("%s cannot be enabled", name);
                        } else {
                                sblock.fs_flags |= FS_DOSOFTDEP | FS_SUJ;
                                warnx("%s set", name);
@@ -966,8 +966,10 @@ journal_alloc(int64_t size)
         * If the journal file exists we can't allocate it.
         */
        ino = journal_findfile();
-       if (ino == (ino_t)-1)
+       if (ino == (ino_t)-1) {
+               warnx("journal_findfile() failed.");
                return (-1);
+       }
        if (ino > 0) {
                warnx("Journal file %s already exists, please remove.",
                    SUJ_FILE);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to