From 97d20120d513c69ed5ce11445e93c184ca29ac5e Mon Sep 17 00:00:00 2001 From: octo Date: Tue, 21 Mar 2006 11:55:32 +0000 Subject: [PATCH] Removed newlines from syslog-messages in cf_dispatch Added debug message (of return value) to cf_dispatch --- src/configfile.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/configfile.c b/src/configfile.c index 252bd31d..e7eb981d 100644 --- 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); } -- 2.30.2