Date: Wed, 19 Aug 2015 20:10:58 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r286940 - head/usr.bin/truss Message-ID: <201508192010.t7JKAxUG019123@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Wed Aug 19 20:10:58 2015 New Revision: 286940 URL: https://svnweb.freebsd.org/changeset/base/286940 Log: ino_t is unsigned, so use uintmax_t instead of intmax_t when printing it. Submitted by: bde (sort of) Modified: head/usr.bin/truss/syscalls.c Modified: head/usr.bin/truss/syscalls.c ============================================================================== --- head/usr.bin/truss/syscalls.c Wed Aug 19 20:09:14 2015 (r286939) +++ head/usr.bin/truss/syscalls.c Wed Aug 19 20:10:58 2015 (r286940) @@ -1397,8 +1397,8 @@ print_arg(struct syscall_args *sc, unsig 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]);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508192010.t7JKAxUG019123>