From 69b468b9ed3c8b576174389c82b7d7080fd9132b Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Wed, 17 Oct 2018 16:54:13 +0000 Subject: 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 --- sbin/tunefs/tunefs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c index e3d972bceb57..ef27b60f6bef 100644 --- a/sbin/tunefs/tunefs.c +++ b/sbin/tunefs/tunefs.c @@ -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); -- cgit v1.2.3