projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src/plugin.c: Warn if plugin_register_*() overwrites an existing callback.
[collectd.git]
/
src
/
plugin.c
diff --git
a/src/plugin.c
b/src/plugin.c
index
5ca009c
..
182892a
100644
(file)
--- a/
src/plugin.c
+++ b/
src/plugin.c
@@
-210,6
+210,10
@@
static int register_callback (llist_t **list, /* {{{ */
old_cf = le->value;
le->value = cf;
+ WARNING ("plugin: register_callback: "
+ "a callback named `%s' already exists - "
+ "overwriting the old entry!", name);
+
destroy_callback (old_cf);
sfree (key);
}