From: Pavel Rochnyack Date: Thu, 6 Jul 2017 19:07:43 +0000 (+0700) Subject: Change error message when read callback name is duplicated while registering it. X-Git-Tag: collectd-5.8.0~110^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f519b4b222ab9253e70b6cda7605d7c58ff771b4;p=collectd.git Change error message when read callback name is duplicated while registering it. The message `Check for duplicate "LoadPlugin" lines` is obsolete, as there is a special check in `plugin_load()` for this case. --- diff --git a/src/daemon/plugin.c b/src/daemon/plugin.c index d22bd940..ae99d5fd 100644 --- a/src/daemon/plugin.c +++ b/src/daemon/plugin.c @@ -1126,8 +1126,7 @@ static int plugin_insert_read(read_func_t *rf) { if (le != NULL) { pthread_mutex_unlock(&read_lock); WARNING("The read function \"%s\" is already registered. " - "Check for duplicate \"LoadPlugin\" lines " - "in your configuration!", + "Check for duplicates in your configuration!", rf->rf_name); return EINVAL; }