diff options
Diffstat (limited to 'src/commit2.c')
-rw-r--r-- | src/commit2.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/commit2.c b/src/commit2.c index 1b22bf8..40d9cc8 100644 --- a/src/commit2.c +++ b/src/commit2.c @@ -811,7 +811,12 @@ dump_func(GNode *node, gpointer data) for (i = 0; i < depth; ++i) { fprintf(out," "); } - fprintf(out,"%s (t: %d, p: %d)", ((struct VyattaNode*)gp)->_data._name,((struct VyattaNode*)gp)->_config._def.def_type,((struct VyattaNode*)gp)->_config._priority); + if (((struct VyattaNode*)gp)->_config._def.def_type2 != NULL) { + fprintf(out,"%s (t: %d-%d, p: %d)", ((struct VyattaNode*)gp)->_data._name,((struct VyattaNode*)gp)->_config._def.def_type,((struct VyattaNode*)gp)->_config._def.def_type2,((struct VyattaNode*)gp)->_config._priority); + } + else { + fprintf(out,"%s (t: %d, p: %d)", ((struct VyattaNode*)gp)->_data._name,((struct VyattaNode*)gp)->_config._def.def_type,((struct VyattaNode*)gp)->_config._priority); + } if (((struct VyattaNode*)gp)->_data._value == TRUE) { fprintf(out," [VALUE]"); } |