Fix printf format warning.

This commit is contained in:
John Baldwin 2016-10-11 17:11:17 +00:00
parent 609b0fe966
commit 9ba323071d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=307060

View File

@ -1924,9 +1924,9 @@ print_arg(struct syscall_args *sc, unsigned long *args, long *retval,
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;