summaryrefslogtreecommitdiff
path: root/src/commit2.c
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2009-10-21 16:52:42 -0700
committerslioch <slioch@eng-140.vyatta.com>2009-10-21 16:52:42 -0700
commit9817f6e3a0581263cdec34a8c914bf41052c73ed (patch)
tree36f92d2248a714e2c1e19120b062bfddf70c2564 /src/commit2.c
parent0cab54b9bec323ebb2d92ec36f4c99c08e7336d2 (diff)
downloadvyatta-cfg-9817f6e3a0581263cdec34a8c914bf41052c73ed.tar.gz
vyatta-cfg-9817f6e3a0581263cdec34a8c914bf41052c73ed.zip
preserve priorities in hierarchy. old priority still active, but commit -s will now display both priorities:
interfaces (t: 0, p: 850,850) the first value is from the old priority file and is the active value, the second value is the value retrieved from the node.def and is not used (yet).
Diffstat (limited to 'src/commit2.c')
-rw-r--r--src/commit2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit2.c b/src/commit2.c
index 52bcd68..90c2846 100644
--- a/src/commit2.c
+++ b/src/commit2.c
@@ -793,7 +793,7 @@ 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)->_priority);
+ fprintf(out,"%s (t: %d, p: %d,%d)", ((struct VyattaNode*)gp)->_data._name,((struct VyattaNode*)gp)->_config._def.def_type,((struct VyattaNode*)gp)->_priority,((struct VyattaNode*)gp)->_config._priority);
if (((struct VyattaNode*)gp)->_data._value == TRUE) {
fprintf(out," [VALUE]");
}