summaryrefslogtreecommitdiffstats
path: root/sbin/newfs/mkfs.c
diff options
context:
space:
mode:
authormdf <mdf@FreeBSD.org>2012-09-27 23:31:06 +0000
committermdf <mdf@FreeBSD.org>2012-09-27 23:31:06 +0000
commite76336791156e518c57a0aa274e1652774931971 (patch)
tree51028e29caefe265e99cac58ecb1cce380def92e /sbin/newfs/mkfs.c
parent908993ebfad03e82e8f3038681a0041f4766098e (diff)
downloadFreeBSD-src-e76336791156e518c57a0aa274e1652774931971.zip
FreeBSD-src-e76336791156e518c57a0aa274e1652774931971.tar.gz
Fix sbin/ build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
Diffstat (limited to 'sbin/newfs/mkfs.c')
-rw-r--r--sbin/newfs/mkfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c
index 5e2a579..efc22c3 100644
--- a/sbin/newfs/mkfs.c
+++ b/sbin/newfs/mkfs.c
@@ -1003,7 +1003,8 @@ iput(union dinode *ip, ino_t ino)
sblock.fs_cstotal.cs_nifree--;
fscs[0].cs_nifree--;
if (ino >= (unsigned long)sblock.fs_ipg * sblock.fs_ncg) {
- printf("fsinit: inode value out of range (%d).\n", ino);
+ printf("fsinit: inode value out of range (%ju).\n",
+ (uintmax_t)ino);
exit(32);
}
d = fsbtodb(&sblock, ino_to_fsba(&sblock, ino));
OpenPOWER on IntegriCloud