summaryrefslogtreecommitdiff
path: root/sbin/quotacheck
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/quotacheck
parent623d7cb6637493a21a89389323d72428f85affcc (diff)
downloadsrc-test2-e25a029eb2496de2e47cd3a936ad4c24bf0043ba.tar.gz
src-test2-e25a029eb2496de2e47cd3a936ad4c24bf0043ba.zip
Notes
Diffstat (limited to 'sbin/quotacheck')
-rw-r--r--sbin/quotacheck/quotacheck.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c
index ed9ce753c553..a32ac841207d 100644
--- a/sbin/quotacheck/quotacheck.c
+++ b/sbin/quotacheck/quotacheck.c
@@ -63,6 +63,7 @@ __FBSDID("$FreeBSD$");
#include <grp.h>
#include <libutil.h>
#include <pwd.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -383,9 +384,9 @@ chkquota(char *specname, struct quotafile *qfu, struct quotafile *qfg)
if (vflag) {
if (aflag)
(void)printf("%s: ", mntpt);
- (void)printf("out of range UID/GID (%u/%u) ino=%u\n",
+ (void)printf("out of range UID/GID (%u/%u) ino=%ju\n",
DIP(dp, di_uid), DIP(dp,di_gid),
- ino);
+ (uintmax_t)ino);
}
continue;
}
@@ -601,7 +602,8 @@ getnextinode(ino_t inumber)
static caddr_t nextinop;
if (inumber != nextino++ || inumber > lastvalidinum)
- errx(1, "bad inode number %d to nextinode", inumber);
+ errx(1, "bad inode number %ju to nextinode",
+ (uintmax_t)inumber);
if (inumber >= lastinum) {
readcnt++;
dblk = fsbtodb(&sblock, ino_to_fsba(&sblock, lastinum));
@@ -635,7 +637,7 @@ setinodebuf(ino_t inum)
{
if (inum % sblock.fs_ipg != 0)
- errx(1, "bad inode number %d to setinodebuf", inum);
+ errx(1, "bad inode number %ju to setinodebuf", (uintmax_t)inum);
lastvalidinum = inum + sblock.fs_ipg - 1;
nextino = inum;
lastinum = inum;