[SCM] Samba Shared Repository - branch master updated
Günther Deschner
gd at samba.org
Sat May 8 15:01:54 MDT 2010
The branch, master has been updated
via 0798ddf... pidl: add NDR_PRINT_DEBUG output to generated s3 server dispatch tables.
from 58b5a16... s3: Fix the build
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 0798ddf63a72e4259ce406ac199490eb5cb1f359
Author: Günther Deschner <gd at samba.org>
Date: Fri May 7 22:54:08 2010 +0200
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
-----------------------------------------------------------------------
Summary of changes:
pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm b/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm
index 7c9091e..057dca6 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 "}";
--
Samba Shared Repository
More information about the samba-cvs
mailing list