summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-01 00:57:41 +0000
committerMiles Bader <miles@gnu.org>1996-05-01 00:57:41 +0000
commitf465ff27f340399be3b52c455e8f865667a1bfca (patch)
tree72d92b5aa34bebb14cc1e3338d756cc85fbf227d
parentffba496875c9deb9d8e9f907fcd4a6985e514189 (diff)
(pass5): Be sure to call pwarn before pfix.
-rw-r--r--ufs-fsck/pass5.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ufs-fsck/pass5.c b/ufs-fsck/pass5.c
index 5559d37c..b91341cf 100644
--- a/ufs-fsck/pass5.c
+++ b/ufs-fsck/pass5.c
@@ -168,7 +168,7 @@ pass5 ()
writecg = 0;
if (!cg_chkmagic (cg))
- pfatal ("CG %d: BAD MAGIC NUMBER\n", c);
+ pfatal ("CG %d: BAD MAGIC NUMBER", c);
/* Compute first and last data block addresses in this group */
dbase = cgbase (sblock, c);
@@ -422,9 +422,10 @@ pass5 ()
if (sblock->fs_clean == 0 && !fix_denied)
{
- if (preen || reply ("MARK FILESYSTEM CLEAN"))
+ pwarn ("FILESYSTEM MODIFIED");
+ if (preen || reply ("MARK CLEAN"))
{
- pfix ("FILESYSTEM MARKED CLEAN");
+ pfix ("MARKED CLEAN");
sblock->fs_clean = 1;
writesb = 1;
}