[Nagiosplug-checkins] SF.net SVN: nagiosplug: [1885] nagiosplug/trunk/plugins/check_procs.c
psychotrahe at users.sourceforge.net
psychotrahe at users.sourceforge.net
Fri Jan 4 23:10:38 CET 2008
Revision: 1885
http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1885&view=rev
Author: psychotrahe
Date: 2008-01-04 14:10:37 -0800 (Fri, 04 Jan 2008)
Log Message:
-----------
Cleaned check_procs usage output (Ferenc Wagner #1862218)
Modified Paths:
--------------
nagiosplug/trunk/plugins/check_procs.c
Modified: nagiosplug/trunk/plugins/check_procs.c
===================================================================
--- nagiosplug/trunk/plugins/check_procs.c 2007-12-21 14:19:08 UTC (rev 1884)
+++ nagiosplug/trunk/plugins/check_procs.c 2008-01-04 22:10:37 UTC (rev 1885)
@@ -417,13 +417,13 @@
pw = getpwuid ((uid_t) uid);
/* check to be sure user exists */
if (pw == NULL)
- usage2 (_("UID %s was not found"), optarg);
+ usage2 (_("UID was not found"), optarg);
}
else {
pw = getpwnam (optarg);
/* check to be sure user exists */
if (pw == NULL)
- usage2 (_("User name %s was not found"), optarg);
+ usage2 (_("User name was not found"), optarg);
/* then get uid */
uid = pw->pw_uid;
}
@@ -750,7 +750,7 @@
void
print_usage (void)
{
- printf (_("Usage:"));
+ printf (_("Usage: "));
printf ("%s -w <range> -c <range> [-m metric] [-s state] [-p ppid]\n", progname);
printf (" [-u user] [-r rss] [-z vsz] [-P %%cpu] [-a argument-array]\n");
printf (" [-C command] [-t timeout] [-v]\n");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list