summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-01-17 18:13:31 +0100
committerStefan Metzmacher <metze@samba.org>2009-01-19 07:05:21 +0100
commitbae593bb118459c1b0d12d02e58ba6c89400aa97 (patch)
treea9e64f67f0d997d2697dc48311cd473bbab897f3 /librpc
parent996790719066d92f563bf53fe4222d2b5e3863a5 (diff)
downloadsamba-bae593bb118459c1b0d12d02e58ba6c89400aa97.tar.gz
samba-bae593bb118459c1b0d12d02e58ba6c89400aa97.tar.bz2
samba-bae593bb118459c1b0d12d02e58ba6c89400aa97.zip
ndr_print: fix the output ndr debug messages only add header line once
metze (from samba4wins tree e99531aae325e4443fcb917a75dfe4a86b892583)
Diffstat (limited to 'librpc')
-rw-r--r--librpc/ndr/ndr.c6
1 files changed, 6 insertions, 0 deletions
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;