From 5b3d96f602130b08e5a3a7292330117d58cacf42 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 9 Sep 2010 17:03:14 +0200 Subject: [PATCH] src/graph_instance.c: Check return value of "def_get_rrdargs". --- src/graph_instance.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); -- 2.11.0