From bae593bb118459c1b0d12d02e58ba6c89400aa97 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 17 Jan 2009 18:13:31 +0100 Subject: ndr_print: fix the output ndr debug messages only add header line once metze (from samba4wins tree e99531aae325e4443fcb917a75dfe4a86b892583) --- librpc/ndr/ndr.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'librpc/ndr') diff --git a/librpc/ndr/ndr.c b/librpc/ndr/ndr.c index c382abba02..9f7aab3c03 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; -- cgit