Mercurial > illumos > illumos-gate
changeset 3797:2436612507a3
6511867 UNIX03: *vsc* 'ipcs -m' displays IPC_PRIVATE shmseg key as integer instead of 0x%x
author | ceastha |
---|---|
date | Sat, 10 Mar 2007 06:42:50 -0800 |
parents | 3dc60af20942 |
children | 36499f71540b |
files | usr/src/cmd/ipcs/ipcs.c |
diffstat | 1 files changed, 6 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/ipcs/ipcs.c Fri Mar 09 21:22:16 2007 -0800 +++ b/usr/src/cmd/ipcs/ipcs.c Sat Mar 10 06:42:50 2007 -0800 @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2003 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -392,7 +391,7 @@ struct passwd *u; /* ptr to user passwd entry */ char keyfield[16]; - (void) snprintf(keyfield, sizeof (keyfield), " %#x", permp->ipcx_key); + (void) snprintf(keyfield, sizeof (keyfield), " 0x%x", permp->ipcx_key); (void) printf("%c %10d %-13s", type, slot, keyfield); for (i = 02000; i; modesp++, i >>= 1) @@ -504,7 +503,7 @@ /* advance to next message header */ /* LINTED alignment */ mhead = (struct msgsnap_mhead *) - ((caddr_t)(mhead + 1) + SZROUND(mlen)); + ((caddr_t)(mhead + 1) + SZROUND(mlen)); } } @@ -518,7 +517,7 @@ int c; (void) printf(gettext(" message type %ld, size %lu\n"), - type, (ulong_t)msgsize); + type, (ulong_t)msgsize); for (i = 0; i < msgsize; i += 16) { /* first in hex */