Date: Tue, 16 Dec 2008 20:48:38 +0000 (UTC) From: Ruslan Ermilov <ru@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org Subject: svn commit: r186192 - releng/7.1/usr.bin/ipcs stable/7/usr.bin/ipcs Message-ID: <200812162048.mBGKmc6m047311@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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: releng/7.1/usr.bin/ipcs/ (props changed) releng/7.1/usr.bin/ipcs/ipcs.c Changes in other areas also in this revision: Modified: stable/7/usr.bin/ipcs/ (props changed) stable/7/usr.bin/ipcs/ipcs.c Modified: releng/7.1/usr.bin/ipcs/ipcs.c ============================================================================== --- releng/7.1/usr.bin/ipcs/ipcs.c Tue Dec 16 20:07:47 2008 (r186191) +++ releng/7.1/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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812162048.mBGKmc6m047311>