diff options
author | ru <ru@FreeBSD.org> | 2008-12-16 09:17:05 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2008-12-16 09:17:05 +0000 |
commit | 1283f09c3e8cc38a46bb1cd7c5a02033d71977e6 (patch) | |
tree | 92e51f376a0f9ade91485e46ef49e1b3486ce354 /usr.bin/ipcs | |
parent | 222f4e20a8b598bffb1faf5a3963d48987f3ec2a (diff) | |
download | FreeBSD-src-1283f09c3e8cc38a46bb1cd7c5a02033d71977e6.zip FreeBSD-src-1283f09c3e8cc38a46bb1cd7c5a02033d71977e6.tar.gz |
Fix printing of shared memory limits.
MFC after: 3 days
Diffstat (limited to 'usr.bin/ipcs')
-rw-r--r-- | usr.bin/ipcs/ipcs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ipcs/ipcs.c b/usr.bin/ipcs/ipcs.c index eb50ed6..67364d5 100644 --- a/usr.bin/ipcs/ipcs.c +++ b/usr.bin/ipcs/ipcs.c @@ -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); } |