Use the rpc_parse debug class for PIDL genrated code
authorAndrew Bartlett <abartlet@samba.org>
Wed, 6 Sep 2017 04:27:07 +0000 (16:27 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 7 Sep 2017 04:56:27 +0000 (06:56 +0200)
This means that the default print binding string qualifier will now go via this debug class
as will explicit calls to ndr_print_debug() and ndr_print_union_debug().

Calls to ndr_print_debugc() are not changed.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
librpc/ndr/ndr.c

index 0f55cf9788785b1b5a5fb241648f58156b483691..d478eb69c013d472ad2bff428dd826458f99af34 100644 (file)
@@ -31,6 +31,9 @@
 #include "librpc/ndr/libndr.h"
 #include "../lib/util/dlinklist.h"
 
+#undef DBGC_CLASS
+#define DBGC_CLASS DBGC_RPC_PARSE
+
 #define NDR_BASE_MARSHALL_SIZE 1024
 
 /* this guid indicates NDR encoding in a protocol tower */