summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e73eacb)
raw | patch | inline | side by side (parent: e73eacb)
author | Sebastian Harl <sh@tokkee.org> | |
Sat, 22 Nov 2008 17:39:00 +0000 (18:39 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sat, 6 Dec 2008 09:21:03 +0000 (10:21 +0100) |
src/processes.c | patch | blob | history |
diff --git a/src/processes.c b/src/processes.c
index f229804d95121de08a421ba8f8f30b39feb43a8a..3b219906436bcce8caffa5b8370e38ad09309cb8 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
int fields_num;
new_val = strdup (value);
- if (new_val == NULL)
+ if (new_val == NULL) {
+ ERROR ("processes plugin: strdup failed when processing "
+ "`ProcessMatch %s'.", value);
return (1);
+ }
+
fields_num = strsplit (new_val, fields,
STATIC_ARRAY_SIZE (fields));
if (fields_num != 2)
{
+ ERROR ("processes plugin: `ProcessMatch' needs exactly "
+ "two string arguments.");
sfree (new_val);
return (1);
}
}
else
{
+ ERROR ("processes plugin: The `%s' configuration option is not "
+ "understood and will be ignored.", key);
return (-1);
}