From e25a029eb2496de2e47cd3a936ad4c24bf0043ba Mon Sep 17 00:00:00 2001 From: Matthew D Fleming 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/fsirand/fsirand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/fsirand') diff --git a/sbin/fsirand/fsirand.c b/sbin/fsirand/fsirand.c index ca7841a46f3e..c373c5bb56f5 100644 --- a/sbin/fsirand/fsirand.c +++ b/sbin/fsirand/fsirand.c @@ -274,8 +274,8 @@ fsirand(char *device) dp2 = &((struct ufs2_dinode *)inodebuf)[n]; if (inumber >= ROOTINO) { if (printonly) - (void)printf("ino %d gen %08x\n", - inumber, + (void)printf("ino %ju gen %08x\n", + (uintmax_t)inumber, sblock->fs_magic == FS_UFS1_MAGIC ? dp1->di_gen : dp2->di_gen); else if (sblock->fs_magic == FS_UFS1_MAGIC) -- cgit v1.2.3