/**
* collectd - src/configfile.c
- * Copyright (C) 2005 Florian octo Forster
+ * Copyright (C) 2005,2006 Florian octo Forster
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
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);
}
}
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);
}
void *extra)
{
DBG ("shortvar = %s, var = %s, arguments = %s, value = %s, ...",
- shortvar, var, (arguments) ? arguments : "<NULL>",
- (value) ? value : "?");
+ shortvar, var, arguments, value);
if (strcasecmp (value, "Client") == 0)
operating_mode = MODE_CLIENT;
void *extra)
{
DBG ("shortvar = %s, var = %s, arguments = %s, value = %s, ...",
- shortvar, var, (arguments) ? arguments : "<NULL>",
- (value) ? value : "?");
+ shortvar, var, arguments, value);
plugin_set_dir (value);
cf_mode_item_t *item;
DBG ("shortvar = %s, var = %s, arguments = %s, value = %s, ...",
- shortvar, var, (arguments) ? arguments : "<NULL>",
- (value) ? value : "?");
+ shortvar, var, arguments, value);
if (extra == NULL)
{
void *extra)
{
DBG ("shortvar = %s, var = %s, arguments = %s, value = %s, ...",
- shortvar, var, (arguments) ? arguments : "<NULL>",
- (value) ? value : "?");
+ shortvar, var, arguments, value);
if (plugin_load (value))
syslog (LOG_ERR, "plugin_load (%s): failed to load plugin", value);
char *service = NET_DEFAULT_PORT;
DBG ("shortvar = %s, var = %s, arguments = %s, value = %s, ...",
- shortvar, var, (arguments) ? arguments : "<NULL>",
- (value) ? value : "?");
+ shortvar, var, arguments, value);
buffer = strdup (value);
if (buffer == NULL)
void *extra)
{
DBG ("shortvar = %s, var = %s, arguments = %s, value = %s, ...",
- shortvar, var, (arguments) ? arguments : "<NULL>",
- (value) ? value : "?");
+ shortvar, var, arguments, value);
if (flags == LC_FLAGS_SECTIONSTART)
{
void *extra)
{
DBG ("shortvar = %s, var = %s, arguments = %s, value = %s, ...",
- shortvar, var, (arguments) ? arguments : "<NULL>",
- (value) ? value : "?");
+ shortvar, var, arguments, value);
if ((nesting_depth == 0) || (current_module == NULL))
{