Don't log NDR_PRINT_DEBUG at level 0, this always ends up in syslog
authorVolker Lendecke <vl@samba.org>
Sat, 14 Feb 2009 12:18:28 +0000 (13:18 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 10 Mar 2009 16:07:38 +0000 (17:07 +0100)
I think we eventually need to pass down the debuglevel here.

librpc/ndr/ndr.c

index 2341f51faa03315032ea03c8c81fecdbc090e164..8188ec998fe28e4b233a8e594a1a3cae6be3f1b7 100644 (file)
@@ -179,10 +179,10 @@ _PUBLIC_ void ndr_print_debug_helper(struct ndr_print *ndr, const char *format,
        }
 
        for (i=0;i<ndr->depth;i++) {
-               DEBUGADD(0,("    "));
+               DEBUGADD(1,("    "));
        }
 
-       DEBUGADD(0,("%s\n", s));
+       DEBUGADD(1,("%s\n", s));
        free(s);
 }
 
@@ -211,7 +211,7 @@ _PUBLIC_ void ndr_print_debug(ndr_print_fn_t fn, const char *name, void *ptr)
 {
        struct ndr_print *ndr;
 
-       DEBUG(0,(" "));
+       DEBUG(1,(" "));
 
        ndr = talloc_zero(NULL, struct ndr_print);
        if (!ndr) return;
@@ -229,7 +229,7 @@ _PUBLIC_ void ndr_print_union_debug(ndr_print_fn_t fn, const char *name, uint32_
 {
        struct ndr_print *ndr;
 
-       DEBUG(0,(" "));
+       DEBUG(1,(" "));
 
        ndr = talloc_zero(NULL, struct ndr_print);
        if (!ndr) return;
@@ -248,7 +248,7 @@ _PUBLIC_ void ndr_print_function_debug(ndr_print_function_t fn, const char *name
 {
        struct ndr_print *ndr;
 
-       DEBUG(0,(" "));
+       DEBUG(1,(" "));
 
        ndr = talloc_zero(NULL, struct ndr_print);
        if (!ndr) return;