aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/fsck_ffs/main.c2
-rw-r--r--sbin/fsck_ffs/setup.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/sbin/fsck_ffs/main.c b/sbin/fsck_ffs/main.c
index f5d53a14e0ff..6a67bbe3feb1 100644
--- a/sbin/fsck_ffs/main.c
+++ b/sbin/fsck_ffs/main.c
@@ -408,7 +408,7 @@ checkfilesys(char *filesys)
case 0:
if (preen)
pfatal("CAN'T CHECK FILE SYSTEM.");
- return (0);
+ return (EEXIT);
case -1:
clean:
pwarn("clean, %ld free ", (long)(sblock.fs_cstotal.cs_nffree +
diff --git a/sbin/fsck_ffs/setup.c b/sbin/fsck_ffs/setup.c
index eb04204127f5..7e169f6d4ceb 100644
--- a/sbin/fsck_ffs/setup.c
+++ b/sbin/fsck_ffs/setup.c
@@ -339,15 +339,15 @@ readsb(int listerr)
return (0);
case ENOENT:
if (bflag)
- fprintf(stderr, "%jd is not a file system "
+ printf("%jd is not a file system "
"superblock\n", super / dev_bsize);
else
- fprintf(stderr, "Cannot find file system "
+ printf("Cannot find file system "
"superblock\n");
return (0);
case EIO:
default:
- fprintf(stderr, "I/O error reading %jd\n",
+ printf("I/O error reading %jd\n",
super / dev_bsize);
return (0);
}