From 766ce9a057f954478deede1e4635ef9596894d34 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 26 May 2004 07:31:19 +0000 Subject: r900: when DEBUGLEVEL > 10 print the full deocde of all RPC calls in the server (This used to be commit ee65e43d4dd0bf78a877b918991aa60f44f435b5) --- source4/build/pidl/server.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/build') 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++; } -- cgit