From e76336791156e518c57a0aa274e1652774931971 Mon Sep 17 00:00:00 2001 From: mdf Date: Thu, 27 Sep 2012 23:31:06 +0000 Subject: Fix sbin/ build with a 64-bit ino_t. Original code by: Gleb Kurtsou --- sbin/newfs/mkfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sbin/newfs/mkfs.c') 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)); -- cgit v1.1