From: Florian Forster Date: Tue, 17 Aug 2010 16:52:36 +0000 (+0200) Subject: src/plugin.c: Improve an info message. X-Git-Tag: collectd-4.9.4~22 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=b76b0341b759e4e2dbb2abd46d60b8decdf2fd6d src/plugin.c: Improve an info message. Based on a patch by Sebastian, which didn't use the handy "FORMAT_VL" macro. --- diff --git a/src/plugin.c b/src/plugin.c index 84a5abf2..307bbf4f 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -1307,7 +1307,12 @@ int plugin_dispatch_values (value_list_t *vl) if (c_avl_get (data_sets, vl->type, (void *) &ds) != 0) { - INFO ("plugin_dispatch_values: Dataset not found: %s", vl->type); + char ident[6 * DATA_MAX_NAME_LEN]; + + FORMAT_VL (ident, sizeof (ident), vl); + INFO ("plugin_dispatch_values: Dataset not found: %s " + "(from \"%s\"), check your types.db!", + vl->type, ident); return (-1); }