summaryrefslogtreecommitdiff
path: root/sbin/fsirand
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-23 17:29:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-04-23 17:29:27 +0000
commit1349b37f12be6d4c001fbd32256063acb76e4500 (patch)
treee7794e8b6443c8cd822a4d27db16e7c85c548715 /sbin/fsirand
parent994462ac40a3ec66ee8cebf67e4775444c93a953 (diff)
handle big ino_t
ok otto
Diffstat (limited to 'sbin/fsirand')
-rw-r--r--sbin/fsirand/fsirand.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/fsirand/fsirand.c b/sbin/fsirand/fsirand.c
index 8ad82a658e4..262a6ec5960 100644
--- a/sbin/fsirand/fsirand.c
+++ b/sbin/fsirand/fsirand.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fsirand.c,v 1.27 2013/04/02 04:16:39 deraadt Exp $ */
+/* $OpenBSD: fsirand.c,v 1.28 2013/04/23 17:29:14 deraadt Exp $ */
/*
* Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -279,7 +279,8 @@ fsirand(char *device)
dp2 = &((struct ufs2_dinode *)inodebuf)[n];
if (inumber >= ROOTINO) {
if (printonly)
- (void)printf("ino %d gen %x\n", inumber,
+ (void)printf("ino %llu gen %x\n",
+ (unsigned long long)inumber,
sblock->fs_magic == FS_UFS1_MAGIC ?
dp1->di_gen : dp2->di_gen);
else if (sblock->fs_magic == FS_UFS1_MAGIC)