From: octo Date: Tue, 21 Mar 2006 11:55:32 +0000 (+0000) Subject: Removed newlines from syslog-messages in cf_dispatch X-Git-Tag: collectd-3.8.6^2~93 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=97d20120d513c69ed5ce11445e93c184ca29ac5e;p=collectd.git Removed newlines from syslog-messages in cf_dispatch Added debug message (of return value) to cf_dispatch --- 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); }