summaryrefslogtreecommitdiffstats
path: root/sbin/dump
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/dump
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/dump')
-rw-r--r--sbin/dump/traverse.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sbin/dump/traverse.c b/sbin/dump/traverse.c
index f593244..8258f07 100644
--- a/sbin/dump/traverse.c
+++ b/sbin/dump/traverse.c
@@ -197,8 +197,8 @@ mapfiles(ino_t maxino, long *tapesize)
(mode & IFMT) == 0)
continue;
if (ino >= maxino) {
- msg("Skipping inode %d >= maxino %d\n",
- ino, maxino);
+ msg("Skipping inode %ju >= maxino %ju\n",
+ (uintmax_t)ino, (uintmax_t)maxino);
continue;
}
/*
@@ -400,15 +400,16 @@ searchdir(
for (loc = 0; loc < size; ) {
dp = (struct direct *)(dblk + loc);
if (dp->d_reclen == 0) {
- msg("corrupted directory, inumber %d\n", ino);
+ msg("corrupted directory, inumber %ju\n",
+ (uintmax_t)ino);
break;
}
loc += dp->d_reclen;
if (dp->d_ino == 0)
continue;
if (dp->d_ino >= maxino) {
- msg("corrupted directory entry, d_ino %d >= %d\n",
- dp->d_ino, maxino);
+ msg("corrupted directory entry, d_ino %ju >= %ju\n",
+ (uintmax_t)dp->d_ino, (uintmax_t)maxino);
break;
}
if (dp->d_name[0] == '.') {
OpenPOWER on IntegriCloud