summaryrefslogtreecommitdiff
path: root/source4/build/pidl/server.pm
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-05-26 07:31:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:19 -0500
commit766ce9a057f954478deede1e4635ef9596894d34 (patch)
tree6b448888a8c6993b3db0912c8a545e15a177858c /source4/build/pidl/server.pm
parent330f302a9e72741fa884a70327f69101b1f51f77 (diff)
downloadsamba-766ce9a057f954478deede1e4635ef9596894d34.tar.gz
samba-766ce9a057f954478deede1e4635ef9596894d34.tar.bz2
samba-766ce9a057f954478deede1e4635ef9596894d34.zip
r900: when DEBUGLEVEL > 10 print the full deocde of all RPC calls in the server
(This used to be commit ee65e43d4dd0bf78a877b918991aa60f44f435b5)
Diffstat (limited to 'source4/build/pidl/server.pm')
-rw-r--r--source4/build/pidl/server.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/build/pidl/server.pm b/source4/build/pidl/server.pm
index 67b1fda615..1e670d724b 100644
--- a/source4/build/pidl/server.pm
+++ b/source4/build/pidl/server.pm
@@ -28,11 +28,17 @@ sub gen_dispatch_switch($)
pidl "\tcase $count: {\n";
pidl "\t\tstruct $d->{NAME} *r2 = r;\n";
+ pidl "\t\tif (DEBUGLEVEL > 10) {\n";
+ pidl "\t\t\tNDR_PRINT_IN_DEBUG($d->{NAME}, r2);\n";
+ pidl "\t\t}\n";
if ($d->{RETURN_TYPE} && $d->{RETURN_TYPE} ne "void") {
pidl "\t\tr2->out.result = $d->{NAME}(dce_call, mem_ctx, r2);\n";
} else {
pidl "\t\t$d->{NAME}(dce_call, mem_ctx, r2);\n";
}
+ pidl "\t\tif (DEBUGLEVEL > 10 && dce_call->fault_code == 0) {\n";
+ pidl "\t\t\tNDR_PRINT_OUT_DEBUG($d->{NAME}, r2);\n";
+ pidl "\t\t}\n";
pidl "\t\tbreak;\n\t}\n";
$count++;
}