[prev in list] [next in list] [prev in thread] [next in thread]
List: util-linux-ng
Subject: [PATCH] ipcs: adjust some field positions and widths for correct
From: Benno Schulenberg <bensberg () justemail ! net>
Date: 2008-08-14 22:27:02
Message-ID: 1218752823-27003-1-git-send-email-bensberg () justemail ! net
[Download RAW message or body]
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
---
sys-utils/ipcs.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/sys-utils/ipcs.c b/sys-utils/ipcs.c
index 3738d89..ea6cc72 100644
--- a/sys-utils/ipcs.c
+++ b/sys-utils/ipcs.c
@@ -339,7 +339,7 @@ void do_shm (char format)
else
printf ("%-10d %-10d", shmid, ipcp->uid);
/* ctime uses static buffer: use separate calls */
- printf(" %-20.16s", shmseg.shm_atime
+ printf(" %-20.16s", shmseg.shm_atime
? ctime(&shmseg.shm_atime) + 4 : _("Not set"));
printf(" %-20.16s", shmseg.shm_dtime
? ctime(&shmseg.shm_dtime) + 4 : _("Not set"));
@@ -361,7 +361,7 @@ void do_shm (char format)
printf ("%-10d %-10.10s", shmid, pw->pw_name);
else
printf ("%-10d %-10d", shmid, ipcp->uid);
- printf ("%-10o %-10lu %-10ld %-6s %-6s\n",
+ printf (" %-10o %-10lu %-10ld %-6s %-6s\n",
ipcp->mode & 0777,
/*
* earlier: int, Austin has size_t
@@ -465,10 +465,10 @@ void do_sem (char format)
default:
printf("0x%08x ", ipcp->KEY);
if (pw)
- printf ("%-10d %-10.9s", semid, pw->pw_name);
+ printf ("%-10d %-10.10s", semid, pw->pw_name);
else
- printf ("%-10d %-9d", semid, ipcp->uid);
- printf ("%-10o %-10ld\n",
+ printf ("%-10d %-10d", semid, ipcp->uid);
+ printf (" %-10o %-10ld\n",
ipcp->mode & 0777,
/*
* glibc-2.1.3 and earlier has unsigned short;
--
1.5.6.4
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic