From owner-svn-src-all@FreeBSD.ORG Tue Dec 16 20:48:38 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A902F106564A; Tue, 16 Dec 2008 20:48:38 +0000 (UTC) (envelope-from ru@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9B1748FC1B; Tue, 16 Dec 2008 20:48:38 +0000 (UTC) (envelope-from ru@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBGKmcOb047318; Tue, 16 Dec 2008 20:48:38 GMT (envelope-from ru@svn.freebsd.org) Received: (from ru@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBGKmcaS047317; Tue, 16 Dec 2008 20:48:38 GMT (envelope-from ru@svn.freebsd.org) Message-Id: <200812162048.mBGKmcaS047317@svn.freebsd.org> From: Ruslan Ermilov Date: Tue, 16 Dec 2008 20:48:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186192 - releng/7.1/usr.bin/ipcs stable/7/usr.bin/ipcs X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 20:48:38 -0000 Author: ru Date: Tue Dec 16 20:48:38 2008 New Revision: 186192 URL: http://svn.freebsd.org/changeset/base/186192 Log: MFC: Fix printing of shared memory limits. Approved by: re (kib) Modified: stable/7/usr.bin/ipcs/ (props changed) stable/7/usr.bin/ipcs/ipcs.c Changes in other areas also in this revision: Modified: releng/7.1/usr.bin/ipcs/ (props changed) releng/7.1/usr.bin/ipcs/ipcs.c Modified: stable/7/usr.bin/ipcs/ipcs.c ============================================================================== --- stable/7/usr.bin/ipcs/ipcs.c Tue Dec 16 20:07:47 2008 (r186191) +++ stable/7/usr.bin/ipcs/ipcs.c Tue Dec 16 20:48:38 2008 (r186192) @@ -394,15 +394,15 @@ print_kshmtotal(struct shminfo shminfo) { printf("shminfo:\n"); - printf("\tshmmax: %12d\t(max shared memory segment size)\n", + printf("\tshmmax: %12lu\t(max shared memory segment size)\n", shminfo.shmmax); - printf("\tshmmin: %12d\t(min shared memory segment size)\n", + printf("\tshmmin: %12lu\t(min shared memory segment size)\n", shminfo.shmmin); - printf("\tshmmni: %12d\t(max number of shared memory identifiers)\n", + printf("\tshmmni: %12lu\t(max number of shared memory identifiers)\n", shminfo.shmmni); - printf("\tshmseg: %12d\t(max shared memory segments per process)\n", + printf("\tshmseg: %12lu\t(max shared memory segments per process)\n", shminfo.shmseg); - printf("\tshmall: %12d\t(max amount of shared memory in pages)\n\n", + printf("\tshmall: %12lu\t(max amount of shared memory in pages)\n\n", shminfo.shmall); }