Author: jhb
Date: Thu Jun  7 14:02:07 2012
New Revision: 236714
URL: http://svn.freebsd.org/changeset/base/236714

Log:
  Correct the format specifier for shm_size.  shm_size is a size_t unlike
  the uint64_t size field in libprocstat's shmstat structure in 9.x and
  later.
  
  Pointy hat to:        jhb

Modified:
  stable/8/usr.bin/fstat/fstat.c

Modified: stable/8/usr.bin/fstat/fstat.c
==============================================================================
--- stable/8/usr.bin/fstat/fstat.c      Thu Jun  7 10:53:42 2012        
(r236713)
+++ stable/8/usr.bin/fstat/fstat.c      Thu Jun  7 14:02:07 2012        
(r236714)
@@ -988,7 +988,7 @@ shmtrans(struct shmfd *shmp, int i, int 
                printf(" %-15s", name[0] != '\0' ? name : "-");
                strmode(shm.shm_mode, mode);
        }
-       printf(" %10s %6ju", mode, shm.shm_size);
+       printf(" %10s %6zu", mode, shm.shm_size);
        printf(" %2s\n", rw);
 
        return;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to