From: Stefan Metzmacher Date: Sat, 17 Jan 2009 17:13:31 +0000 (+0100) Subject: ndr_print: fix the output ndr debug messages only add header line once X-Git-Tag: samba-4.0.0alpha6~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bae593bb118459c1b0d12d02e58ba6c89400aa97;p=thirdparty%2Fsamba.git ndr_print: fix the output ndr debug messages only add header line once metze (from samba4wins tree e99531aae325e4443fcb917a75dfe4a86b892583) --- diff --git a/librpc/ndr/ndr.c b/librpc/ndr/ndr.c index c382abba020..9f7aab3c03d 100644 --- a/librpc/ndr/ndr.c +++ b/librpc/ndr/ndr.c @@ -211,6 +211,8 @@ _PUBLIC_ void ndr_print_debug(ndr_print_fn_t fn, const char *name, void *ptr) { struct ndr_print *ndr; + DEBUG(0,("")); + ndr = talloc_zero(NULL, struct ndr_print); if (!ndr) return; ndr->print = ndr_print_debug_helper; @@ -227,6 +229,8 @@ _PUBLIC_ void ndr_print_union_debug(ndr_print_fn_t fn, const char *name, uint32_ { struct ndr_print *ndr; + DEBUG(0,("")); + ndr = talloc_zero(NULL, struct ndr_print); if (!ndr) return; ndr->print = ndr_print_debug_helper; @@ -244,6 +248,8 @@ _PUBLIC_ void ndr_print_function_debug(ndr_print_function_t fn, const char *name { struct ndr_print *ndr; + DEBUG(0,("")); + ndr = talloc_zero(NULL, struct ndr_print); if (!ndr) return; ndr->print = ndr_print_debug_helper;