From f4cc0e32a4a4832daf19707aaed48ad28b43e28f Mon Sep 17 00:00:00 2001 From: jhb Date: Thu, 7 Jun 2012 14:02:07 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.freebsd.org/base/stable/8@236714 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.bin/fstat/fstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c index f693302b5..278770ba2 100644 --- a/usr.bin/fstat/fstat.c +++ b/usr.bin/fstat/fstat.c @@ -988,7 +988,7 @@ shmtrans(struct shmfd *shmp, int i, int flag) 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; -- 2.45.0