aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsirand/fsirand.c
diff options
context:
space:
mode:
authorMatthew D Fleming <mdf@FreeBSD.org>2012-09-27 23:31:06 +0000
committerMatthew D Fleming <mdf@FreeBSD.org>2012-09-27 23:31:06 +0000
commite25a029eb2496de2e47cd3a936ad4c24bf0043ba (patch)
tree51028e29caefe265e99cac58ecb1cce380def92e /sbin/fsirand/fsirand.c
parent623d7cb6637493a21a89389323d72428f85affcc (diff)
downloadsrc-e25a029eb2496de2e47cd3a936ad4c24bf0043ba.tar.gz
src-e25a029eb2496de2e47cd3a936ad4c24bf0043ba.zip
Fix sbin/ build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
Notes
Notes: svn path=/head/; revision=241013
Diffstat (limited to 'sbin/fsirand/fsirand.c')
-rw-r--r--sbin/fsirand/fsirand.c4
1 files changed, 2 insertions, 2 deletions
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)