From: Francesco Cosoleto Date: Mon, 17 May 2010 23:07:46 +0000 (+0200) Subject: ipcs: get rid of colons from header strings for consistency X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f29922a5bc6f64e2876694bdc77ef6b59639fbb2;p=util-linux ipcs: get rid of colons from header strings for consistency This changes output of -u, -l, and -c. Example of non consistent output: $ ipcs -u | grep ^--- ------ Shared Memory Status -------- ------ Semaphore Status -------- ------ Messages: Status -------- Signed-off-by: Francesco Cosoleto --- diff --git a/sys-utils/ipcs.c b/sys-utils/ipcs.c index 766e5869..7cc204e1 100644 --- a/sys-utils/ipcs.c +++ b/sys-utils/ipcs.c @@ -487,21 +487,21 @@ void do_msg (char format) case LIMITS: if ((msgctl (0, IPC_INFO, (struct msqid_ds *) (void *) &msginfo)) < 0 ) return; - printf (_("------ Messages: Limits --------\n")); + printf (_("------ Messages Limits --------\n")); printf (_("max queues system wide = %d\n"), msginfo.msgmni); printf (_("max size of message (bytes) = %d\n"), msginfo.msgmax); printf (_("default max size of queue (bytes) = %d\n"), msginfo.msgmnb); return; case STATUS: - printf (_("------ Messages: Status --------\n")); + printf (_("------ Messages Status --------\n")); printf (_("allocated queues = %d\n"), msginfo.msgpool); printf (_("used headers = %d\n"), msginfo.msgmap); printf (_("used space = %d bytes\n"), msginfo.msgtql); return; case CREATOR: - printf (_("------ Message Queues: Creators/Owners --------\n")); + printf (_("------ Message Queues Creators/Owners --------\n")); printf ("%-10s %-10s %-10s %-10s %-10s %-10s\n", _("msqid"),_("perms"),_("cuid"),_("cgid"),_("uid"),_("gid")); break;