Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2012 14:02:08 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r236714 - stable/8/usr.bin/fstat
Message-ID:  <201206071402.q57E283A092038@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206071402.q57E283A092038>