svn commit: r311889 - stable/11/usr.bin/truss
John Baldwin
jhb at FreeBSD.org
Tue Jan 10 20:09:36 UTC 2017
Author: jhb
Date: Tue Jan 10 20:09:35 2017
New Revision: 311889
URL: https://svnweb.freebsd.org/changeset/base/311889
Log:
MFC 307060: Fix printf format warning.
Modified:
stable/11/usr.bin/truss/syscalls.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.bin/truss/syscalls.c
==============================================================================
--- stable/11/usr.bin/truss/syscalls.c Tue Jan 10 20:08:21 2017 (r311888)
+++ stable/11/usr.bin/truss/syscalls.c Tue Jan 10 20:09:35 2017 (r311889)
@@ -1924,9 +1924,9 @@ print_arg(struct syscall_args *sc, unsig
cloudabi_filestat_t fsb;
if (get_struct(pid, (void *)args[sc->offset], &fsb, sizeof(fsb))
!= -1)
- fprintf(fp, "{ %s, %lu }",
+ fprintf(fp, "{ %s, %ju }",
xlookup(cloudabi_filetype, fsb.st_filetype),
- fsb.st_size);
+ (uintmax_t)fsb.st_size);
else
fprintf(fp, "0x%lx", args[sc->offset]);
break;
More information about the svn-src-stable-11
mailing list