1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r900: when DEBUGLEVEL > 10 print the full deocde of all RPC calls in the server

This commit is contained in:
Andrew Tridgell 2004-05-26 07:31:19 +00:00 committed by Gerald (Jerry) Carter
parent 6123a1ee7c
commit ee65e43d4d

View 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++;
}