summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f647e8f)
raw | patch | inline | side by side (parent: f647e8f)
author | octo <octo> | |
Tue, 21 Mar 2006 11:55:32 +0000 (11:55 +0000) | ||
committer | octo <octo> | |
Tue, 21 Mar 2006 11:55:32 +0000 (11:55 +0000) |
Added debug message (of return value) to cf_dispatch
src/configfile.c | patch | blob | history |
diff --git a/src/configfile.c b/src/configfile.c
index 252bd31d8eaad59b7c0c9551711b7d63daf3f7c6..e7eb981d2b44b8162f6402a3205410270390b8d0 100644 (file)
--- a/src/configfile.c
+++ b/src/configfile.c
@@ -110,7 +110,7 @@ static int cf_dispatch (char *type, const char *orig_key, const char *orig_value
if ((cf_cb = cf_search (type)) == NULL)
{
- syslog (LOG_WARNING, "Plugin `%s' did not register a callback.\n", type);
+ syslog (LOG_WARNING, "Plugin `%s' did not register a callback.", type);
return (-1);
}
@@ -134,11 +134,13 @@ static int cf_dispatch (char *type, const char *orig_key, const char *orig_value
}
if (i >= cf_cb->keys_num)
- syslog (LOG_WARNING, "Plugin `%s' did not register for value `%s'.\n", type, key);
+ syslog (LOG_WARNING, "Plugin `%s' did not register for value `%s'.", type, key);
free (key);
free (value);
+ DBG ("return (%i)", ret);
+
return (ret);
}