ino_t is unsigned, so use uintmax_t instead of intmax_t when printing it.

Submitted by:	bde (sort of)
This commit is contained in:
John Baldwin 2015-08-19 20:10:58 +00:00
parent a143677385
commit b38fbc2e54
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286940

View File

@ -1397,8 +1397,8 @@ print_arg(struct syscall_args *sc, unsigned long *args, long retval,
strmode(st.st_mode, mode);
fprintf(fp,
"{ mode=%s,inode=%jd,size=%jd,blksize=%ld }", mode,
(intmax_t)st.st_ino, (intmax_t)st.st_size,
"{ mode=%s,inode=%ju,size=%jd,blksize=%ld }", mode,
(uintmax_t)st.st_ino, (intmax_t)st.st_size,
(long)st.st_blksize);
} else {
fprintf(fp, "0x%lx", args[sc->offset]);