From owner-svn-src-head@FreeBSD.ORG Tue Dec 16 09:17:05 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACDAE106564A; Tue, 16 Dec 2008 09:17:05 +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 9C9D28FC21; Tue, 16 Dec 2008 09:17:05 +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 mBG9H5Zv032164; Tue, 16 Dec 2008 09:17:05 GMT (envelope-from ru@svn.freebsd.org) Received: (from ru@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBG9H5CJ032163; Tue, 16 Dec 2008 09:17:05 GMT (envelope-from ru@svn.freebsd.org) Message-Id: <200812160917.mBG9H5CJ032163@svn.freebsd.org> From: Ruslan Ermilov Date: Tue, 16 Dec 2008 09:17:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186174 - head/usr.bin/ipcs X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 09:17:05 -0000 Author: ru Date: Tue Dec 16 09:17:05 2008 New Revision: 186174 URL: http://svn.freebsd.org/changeset/base/186174 Log: Fix printing of shared memory limits. MFC after: 3 days Modified: head/usr.bin/ipcs/ipcs.c Modified: head/usr.bin/ipcs/ipcs.c ============================================================================== --- head/usr.bin/ipcs/ipcs.c Tue Dec 16 09:15:47 2008 (r186173) +++ head/usr.bin/ipcs/ipcs.c Tue Dec 16 09:17:05 2008 (r186174) @@ -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); }