summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs/setup.c
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2016-10-17 22:33:29 +0000
committermckusick <mckusick@FreeBSD.org>2016-10-17 22:33:29 +0000
commitb0e3176a5914877b6dffb64186eab94c3dd58f6c (patch)
tree3f16bf7e013a935eaf3bcf74488f11516d472187 /sbin/fsck_ffs/setup.c
parent7214aeaa9ab8c64f46e4850b7188b59c8f6bffd3 (diff)
downloadFreeBSD-src-b0e3176a5914877b6dffb64186eab94c3dd58f6c.zip
FreeBSD-src-b0e3176a5914877b6dffb64186eab94c3dd58f6c.tar.gz
MFC 304438:
Fsck_ufs was using an int rather than a ufs2_daddr_t to store the alternate superblock location when given in the -b option.
Diffstat (limited to 'sbin/fsck_ffs/setup.c')
-rw-r--r--sbin/fsck_ffs/setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsck_ffs/setup.c b/sbin/fsck_ffs/setup.c
index ff7e9ef..0bcf06c 100644
--- a/sbin/fsck_ffs/setup.c
+++ b/sbin/fsck_ffs/setup.c
@@ -196,7 +196,7 @@ setup(char *dev)
bflag = 0;
return(0);
}
- pwarn("USING ALTERNATE SUPERBLOCK AT %d\n", bflag);
+ pwarn("USING ALTERNATE SUPERBLOCK AT %jd\n", bflag);
bflag = 0;
}
if (skipclean && ckclean && sblock.fs_clean) {
@@ -329,7 +329,7 @@ readsb(int listerr)
}
if (sblock.fs_magic != FS_UFS1_MAGIC &&
sblock.fs_magic != FS_UFS2_MAGIC) {
- fprintf(stderr, "%d is not a file system superblock\n",
+ fprintf(stderr, "%jd is not a file system superblock\n",
bflag);
return (0);
}
OpenPOWER on IntegriCloud