diff options
Diffstat (limited to 'plugins/check_procs.c')
-rw-r--r-- | plugins/check_procs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c index 0cd9153c..15ec76f5 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c | |||
@@ -249,7 +249,7 @@ main (int argc, char **argv) | |||
249 | /* If we get anything on STDERR, at least set warning */ | 249 | /* If we get anything on STDERR, at least set warning */ |
250 | while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr)) { | 250 | while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr)) { |
251 | if (verbose) | 251 | if (verbose) |
252 | printf (_("STDERR: %s"), input_buffer); | 252 | printf ("STDERR: %s", input_buffer); |
253 | result = max_state (result, STATE_WARNING); | 253 | result = max_state (result, STATE_WARNING); |
254 | printf (_("System call sent warnings to stderr\n")); | 254 | printf (_("System call sent warnings to stderr\n")); |
255 | } | 255 | } |
@@ -412,7 +412,7 @@ process_arguments (int argc, char **argv) | |||
412 | uid = pw->pw_uid; | 412 | uid = pw->pw_uid; |
413 | } | 413 | } |
414 | user = pw->pw_name; | 414 | user = pw->pw_name; |
415 | asprintf (&fmt, _("%s%sUID = %d (%s)"), (fmt ? fmt : ""), (options ? ", " : ""), | 415 | asprintf (&fmt, "%s%sUID = %d (%s)", (fmt ? fmt : ""), (options ? ", " : ""), |
416 | uid, user); | 416 | uid, user); |
417 | options |= USER; | 417 | options |= USER; |
418 | break; | 418 | break; |
@@ -432,19 +432,19 @@ process_arguments (int argc, char **argv) | |||
432 | break; | 432 | break; |
433 | else | 433 | else |
434 | args = optarg; | 434 | args = optarg; |
435 | asprintf (&fmt, _("%s%sargs '%s'"), (fmt ? fmt : ""), (options ? ", " : ""), args); | 435 | asprintf (&fmt, "%s%sargs '%s'", (fmt ? fmt : ""), (options ? ", " : ""), args); |
436 | options |= ARGS; | 436 | options |= ARGS; |
437 | break; | 437 | break; |
438 | case 'r': /* RSS */ | 438 | case 'r': /* RSS */ |
439 | if (sscanf (optarg, "%d%[^0-9]", &rss, tmp) == 1) { | 439 | if (sscanf (optarg, "%d%[^0-9]", &rss, tmp) == 1) { |
440 | asprintf (&fmt, _("%s%sRSS >= %d"), (fmt ? fmt : ""), (options ? ", " : ""), rss); | 440 | asprintf (&fmt, "%s%sRSS >= %d", (fmt ? fmt : ""), (options ? ", " : ""), rss); |
441 | options |= RSS; | 441 | options |= RSS; |
442 | break; | 442 | break; |
443 | } | 443 | } |
444 | usage4 (_("RSS must be an integer!")); | 444 | usage4 (_("RSS must be an integer!")); |
445 | case 'z': /* VSZ */ | 445 | case 'z': /* VSZ */ |
446 | if (sscanf (optarg, "%d%[^0-9]", &vsz, tmp) == 1) { | 446 | if (sscanf (optarg, "%d%[^0-9]", &vsz, tmp) == 1) { |
447 | asprintf (&fmt, _("%s%sVSZ >= %d"), (fmt ? fmt : ""), (options ? ", " : ""), vsz); | 447 | asprintf (&fmt, "%s%sVSZ >= %d", (fmt ? fmt : ""), (options ? ", " : ""), vsz); |
448 | options |= VSZ; | 448 | options |= VSZ; |
449 | break; | 449 | break; |
450 | } | 450 | } |
@@ -452,7 +452,7 @@ process_arguments (int argc, char **argv) | |||
452 | case 'P': /* PCPU */ | 452 | case 'P': /* PCPU */ |
453 | /* TODO: -P 1.5.5 is accepted */ | 453 | /* TODO: -P 1.5.5 is accepted */ |
454 | if (sscanf (optarg, "%f%[^0-9.]", &pcpu, tmp) == 1) { | 454 | if (sscanf (optarg, "%f%[^0-9.]", &pcpu, tmp) == 1) { |
455 | asprintf (&fmt, _("%s%sPCPU >= %.2f"), (fmt ? fmt : ""), (options ? ", " : ""), pcpu); | 455 | asprintf (&fmt, "%s%sPCPU >= %.2f", (fmt ? fmt : ""), (options ? ", " : ""), pcpu); |
456 | options |= PCPU; | 456 | options |= PCPU; |
457 | break; | 457 | break; |
458 | } | 458 | } |