diff options
author | mdf <mdf@FreeBSD.org> | 2012-09-27 23:31:06 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2012-09-27 23:31:06 +0000 |
commit | e76336791156e518c57a0aa274e1652774931971 (patch) | |
tree | 51028e29caefe265e99cac58ecb1cce380def92e /sbin/tunefs | |
parent | 908993ebfad03e82e8f3038681a0041f4766098e (diff) | |
download | FreeBSD-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/tunefs')
-rw-r--r-- | sbin/tunefs/tunefs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c index de3db12..228132f 100644 --- a/sbin/tunefs/tunefs.c +++ b/sbin/tunefs/tunefs.c @@ -894,7 +894,7 @@ journal_clear(void) warnx("Journal file does not exist"); return; } - printf("Clearing journal flags from inode %d\n", ino); + printf("Clearing journal flags from inode %ju\n", (uintmax_t)ino); if (getino(&disk, &ip, ino, &mode) != 0) { warn("Failed to get journal inode"); return; @@ -970,8 +970,8 @@ journal_alloc(int64_t size) ino = cgialloc(&disk); if (ino <= 0) break; - printf("Using inode %d in cg %d for %jd byte journal\n", - ino, cgp->cg_cgx, size); + printf("Using inode %ju in cg %d for %jd byte journal\n", + (uintmax_t)ino, cgp->cg_cgx, size); if (getino(&disk, &ip, ino, &mode) != 0) { warn("Failed to get allocated inode"); sbdirty(); |