mirror of
https://github.com/samba-team/samba.git
synced 2025-03-29 02:50:28 +03:00
Don't log NDR_PRINT_DEBUG at level 0, this always ends up in syslog
I think we eventually need to pass down the debuglevel here.
This commit is contained in:
parent
825949b810
commit
8c41e0e5a6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user