summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2009-02-17 16:43:45 -0800
committerslioch <slioch@eng-140.vyatta.com>2009-02-17 16:43:45 -0800
commit79c1a2d2dcbb74447ad5b142295161e0340a36f4 (patch)
treef25a6fb4c088555b0707d15fe57cff9997dec913 /src/common
parenta3400424074a9d3b76c95561af4a948a430d4be4 (diff)
downloadvyatta-cfg-79c1a2d2dcbb74447ad5b142295161e0340a36f4.tar.gz
vyatta-cfg-79c1a2d2dcbb74447ad5b142295161e0340a36f4.zip
added additional debug output and fixed dumping of trans nodes to screen. added default
priorities in priorities file. also fixed bug where interface changes could sweep in portions of failed configuration on error. now fixed.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/unionfs.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/common/unionfs.c b/src/common/unionfs.c
index 1d9cbe8..7084893 100644
--- a/src/common/unionfs.c
+++ b/src/common/unionfs.c
@@ -381,7 +381,9 @@ value_exists(char *path)
void
common_set_parent_context(char *cpath, char *dpath)
{
- printf("common_set_parent_context(incoming): %s, %s\n",cpath,dpath);
+ if (g_debug) {
+ printf("common_set_parent_context(incoming): %s, %s\n",cpath,dpath);
+ }
//strip off last path and set
int index = strlen(cpath)-1;
if (cpath[index] == '/') {
@@ -412,7 +414,9 @@ common_set_parent_context(char *cpath, char *dpath)
*ptr = '\0';
}
set_path(dpath,FALSE);
- printf("common_set_parent_context: %s, %s\n",cpath,dpath);
+ if (g_debug) {
+ printf("common_set_parent_context: %s, %s\n",cpath,dpath);
+ }
}
/**
@@ -421,7 +425,9 @@ common_set_parent_context(char *cpath, char *dpath)
void
common_set_context(char *cpath, char *dpath)
{
- printf("common_set_context: %s, %s\n",cpath,dpath);
+ if (g_debug) {
+ printf("common_set_context: %s, %s\n",cpath,dpath);
+ }
set_path(cpath,TRUE);
set_path(dpath,FALSE);
}