svn commit: r236714 - stable/8/usr.bin/fstat
John Baldwin
jhb at FreeBSD.org
Thu Jun 7 14:02:08 UTC 2012
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;
More information about the svn-src-stable-8
mailing list