From 3ccc10067098e47743ac6f160eaab74682c0cf21 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 19 Sep 2006 17:43:56 +0000 Subject: [PATCH] ipcs: fix output (misaligned columns) --- util-linux/ipcs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c index 78c0ce9..b49aab0 100644 --- a/util-linux/ipcs.c +++ b/util-linux/ipcs.c @@ -234,7 +234,7 @@ static void do_shm(void) bb_printf("%-10d %-10.10s", shmid, pw->pw_name); else bb_printf("%-10d %-10d", shmid, ipcp->uid); - bb_printf("%-10o %-10lu %-10ld %-6s %-6s\n", ipcp->mode & 0777, + bb_printf(" %-10o %-10lu %-10ld %-6s %-6s\n", ipcp->mode & 0777, /* * earlier: int, Austin has size_t */ @@ -344,7 +344,7 @@ static void do_sem(void) bb_printf("%-10d %-10.9s", semid, pw->pw_name); else bb_printf("%-10d %-9d", semid, ipcp->uid); - bb_printf("%-10o %-10ld\n", ipcp->mode & 0777, + bb_printf(" %-10o %-10ld\n", ipcp->mode & 0777, /* * glibc-2.1.3 and earlier has unsigned short; * glibc-2.1.91 has variation between -- 2.7.4