Date: Tue, 16 Dec 2008 09:17:05 +0000 (UTC) From: Ruslan Ermilov <ru@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r186174 - head/usr.bin/ipcs Message-ID: <200812160917.mBG9H5CJ032163@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812160917.mBG9H5CJ032163>