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]);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to