util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] prlimit: improve error messages for bad --pid invocation
@ 2012-07-26 14:11 Bernhard Voelker
  2012-07-26 15:26 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Bernhard Voelker @ 2012-07-26 14:11 UTC (permalink / raw)
  To: util-linux@vger.kernel.org


>From 5c4f86f565c61d23a73d2aa46331edd75ec382df Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <mail@bernhard-voelker.de>
Date: Thu, 26 Jul 2012 16:10:23 +0200
Subject: [PATCH] prlimit: improve error messages for bad --pid invocation

Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
---
 sys-utils/prlimit.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-utils/prlimit.c b/sys-utils/prlimit.c
index c215421..2055adf 100644
--- a/sys-utils/prlimit.c
+++ b/sys-utils/prlimit.c
@@ -579,7 +579,7 @@ int main(int argc, char **argv)

 		case 'p':
 			if (pid)
-				errx(EXIT_FAILURE, _("only one --pid option may be specified."));
+				errx(EXIT_FAILURE, _("option --pid may be specified only once"));
 			pid = strtos32_or_err(optarg, _("invalid PID argument"));
 			break;
 		case 'h':
@@ -610,7 +610,7 @@ int main(int argc, char **argv)
 		}
 	}
 	if (argc > optind && pid)
-		errx(EXIT_FAILURE, _("options --pid and COMMAND are mutually exclusive."));
+		errx(EXIT_FAILURE, _("options --pid and COMMAND are mutually exclusive"));
 	if (!ncolumns) {
 		/* default columns */
 		columns[ncolumns++] = COL_RES;
-- 
1.7.7



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] prlimit: improve error messages for bad --pid invocation
  2012-07-26 14:11 [PATCH] prlimit: improve error messages for bad --pid invocation Bernhard Voelker
@ 2012-07-26 15:26 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2012-07-26 15:26 UTC (permalink / raw)
  To: Bernhard Voelker; +Cc: util-linux@vger.kernel.org

On Thu, Jul 26, 2012 at 04:11:50PM +0200, Bernhard Voelker wrote:
>  sys-utils/prlimit.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

 Applied, thanks.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-26 15:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-26 14:11 [PATCH] prlimit: improve error messages for bad --pid invocation Bernhard Voelker
2012-07-26 15:26 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).