From: Denis Vlasenko Date: Tue, 19 Sep 2006 17:43:56 +0000 (-0000) Subject: ipcs: fix output (misaligned columns) X-Git-Tag: 1_4_0~653 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3ccc10067098e47743ac6f160eaab74682c0cf21;p=oweals%2Fbusybox.git ipcs: fix output (misaligned columns) --- diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c index 78c0ce9cf..b49aab011 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