From owner-svn-src-stable@FreeBSD.ORG Thu Jun 7 14:02:08 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79A841065670; Thu, 7 Jun 2012 14:02:08 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 648DB8FC15; Thu, 7 Jun 2012 14:02:08 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q57E2810092040; Thu, 7 Jun 2012 14:02:08 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q57E283A092038; Thu, 7 Jun 2012 14:02:08 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201206071402.q57E283A092038@svn.freebsd.org> From: John Baldwin Date: Thu, 7 Jun 2012 14:02:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r236714 - stable/8/usr.bin/fstat X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2012 14:02:08 -0000 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;