projects
/
collection4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae76aa9
)
src/graph_instance.c: Check return value of "def_get_rrdargs".
author
Florian Forster
<octo@verplant.org>
Thu, 9 Sep 2010 15:03:14 +0000
(17:03 +0200)
committer
Florian Forster
<octo@verplant.org>
Thu, 9 Sep 2010 15:03:14 +0000
(17:03 +0200)
src/graph_instance.c
patch
|
blob
|
history
diff --git
a/src/graph_instance.c
b/src/graph_instance.c
index
23d88dc
..
a834950
100644
(file)
--- 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);