projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22a81e3
)
src/plugin.c: assert (ds->ds_num == vl->values_len); when debug is enabled.
author
Florian Forster
<octo@huhu.verplant.org>
Tue, 15 May 2007 13:30:42 +0000
(15:30 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Tue, 15 May 2007 13:30:42 +0000
(15:30 +0200)
src/plugin.c
patch
|
blob
|
history
diff --git
a/src/plugin.c
b/src/plugin.c
index
7dd7bd9
..
64dbf78
100644
(file)
--- a/
src/plugin.c
+++ b/
src/plugin.c
@@
-638,6
+638,18
@@
int plugin_dispatch_values (const char *name, const value_list_t *vl)
vl->plugin, vl->plugin_instance,
ds->type, vl->type_instance);
+#if COLLECT_DEBUG
+ assert (ds->ds_num == vl->values_len);
+#else
+ if (ds->ds_num != vl->values_len)
+ {
+ ERROR ("plugin: ds->type = %s: (ds->ds_num = %i) != "
+ "(vl->values_len = %i)",
+ ds->type, ds->ds_num, vl->values_len);
+ return (-1);
+ }
+#endif
+
le = llist_head (list_write);
while (le != NULL)
{