diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-18 10:10:20 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-18 10:10:20 -0800 |
commit | 8090fd56ca7709786916dc73f433d81bc5b8fbfa (patch) | |
tree | f04d117a2543f05b01a483a5b1826231c6c7be2b /src/common | |
parent | 06d822175c89242b4a0246d84a4e5611a8233a8f (diff) | |
parent | 3882b0e90aaa3b1e2d9963584a1e703f1d45d079 (diff) | |
download | vyatta-cfg-8090fd56ca7709786916dc73f433d81bc5b8fbfa.tar.gz vyatta-cfg-8090fd56ca7709786916dc73f433d81bc5b8fbfa.zip |
Merge branch 'jenner' of suva.vyatta.com:/git/vyatta-cfg into jenner
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/unionfs.c | 12 |
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); } |