summaryrefslogtreecommitdiff
path: root/pidl/lib/Parse
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-05-07 22:54:08 +0200
committerGünther Deschner <gd@samba.org>2010-05-08 23:00:20 +0200
commit0798ddf63a72e4259ce406ac199490eb5cb1f359 (patch)
treea2dba6ea2c6515d2ad93c1deab717dae794300fa /pidl/lib/Parse
parent58b5a164440368d55e0a05ddfc4e772d6711513e (diff)
downloadsamba-0798ddf63a72e4259ce406ac199490eb5cb1f359.tar.gz
samba-0798ddf63a72e4259ce406ac199490eb5cb1f359.tar.bz2
samba-0798ddf63a72e4259ce406ac199490eb5cb1f359.zip
pidl: add NDR_PRINT_DEBUG output to generated s3 server dispatch tables.
This dramatically helps tracking and debugging usage of the rpc_pipe_open_internal users. Guenther
Diffstat (limited to 'pidl/lib/Parse')
-rw-r--r--pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
index 7c9091ea94..057dca6c50 100644
--- a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
+++ b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
@@ -243,8 +243,18 @@ sub ParseDispatchFunction($)
pidl "case $op: {";
indent;
pidl "struct $fn->{NAME} *r = (struct $fn->{NAME} *)_r;";
+
+ pidl "if (DEBUGLEVEL >= 10) {";
+ pidl "\tNDR_PRINT_IN_DEBUG($fn->{NAME}, r);";
+ pidl "}";
+
CallWithStruct("cli->pipes_struct", "mem_ctx", $fn,
sub { pidl "\treturn NT_STATUS_NO_MEMORY;"; });
+
+ pidl "if (DEBUGLEVEL >= 10) {";
+ pidl "\tNDR_PRINT_OUT_DEBUG($fn->{NAME}, r);";
+ pidl "}";
+
pidl "return NT_STATUS_OK;";
deindent;
pidl "}";