r900: when DEBUGLEVEL > 10 print the full deocde of all RPC calls in the server
authorAndrew Tridgell <tridge@samba.org>
Wed, 26 May 2004 07:31:19 +0000 (07:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:56:19 +0000 (12:56 -0500)
(This used to be commit ee65e43d4dd0bf78a877b918991aa60f44f435b5)

source4/build/pidl/server.pm

index 67b1fda615aeefa38c003c3e208b07e98767b624..1e670d724b4f04c5f6b560340d012a453393767e 100644 (file)
@@ -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++; 
        }