From: Florian Forster Date: Thu, 9 Sep 2010 15:03:14 +0000 (+0200) Subject: src/graph_instance.c: Check return value of "def_get_rrdargs". X-Git-Tag: v4.0.0~27 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=5b3d96f602130b08e5a3a7292330117d58cacf42;p=collection4.git src/graph_instance.c: Check return value of "def_get_rrdargs". --- diff --git a/src/graph_instance.c b/src/graph_instance.c index 23d88dc..a834950 100644 --- a/src/graph_instance.c +++ b/src/graph_instance.c @@ -150,13 +150,20 @@ static int gl_instance_get_rrdargs_cb (graph_def_t *def, void *user_data) /* {{{ rrd_args_t *args = data->args; size_t i; + int status; for (i = 0; i < inst->files_num; i++) { if (!def_matches (def, inst->files[i])) continue; - def_get_rrdargs (def, inst->files[i], args); + status = def_get_rrdargs (def, inst->files[i], args); + if (status != 0) + { + fprintf (stderr, "gl_instance_get_rrdargs_cb: def_get_rrdargs failed with status %i\n", + status); + fflush (stderr); + } } return (0);