r9279: In Samba3 debuglevel 10 used to print RPC debugs. I think this should
authorTim Potter <tpot@samba.org>
Fri, 12 Aug 2005 22:55:53 +0000 (22:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:33:21 +0000 (13:33 -0500)
apply to Samba4 as well so change the DEBUGLEVEL > 10 to DEBUGLEVEL >= 10.

source/build/pidl/Parse/Pidl/Samba/NDR/Server.pm

index 1d63ea0cd1180e4fc8ba405a876318c3992ff953..a8c159572bcc602cece1aa5e4184388c5caef37c 100644 (file)
@@ -27,7 +27,7 @@ sub gen_dispatch_switch($)
 
                pidl "\tcase $fn->{OPNUM}: {\n";
                pidl "\t\tstruct $fn->{NAME} *r2 = r;\n";
-               pidl "\t\tif (DEBUGLEVEL > 10) {\n";
+               pidl "\t\tif (DEBUGLEVEL >= 10) {\n";
                pidl "\t\t\tNDR_PRINT_FUNCTION_DEBUG($fn->{NAME}, NDR_IN, r2);\n";
                pidl "\t\t}\n";
                if ($fn->{RETURN_TYPE} && $fn->{RETURN_TYPE} ne "void") {
@@ -56,7 +56,7 @@ sub gen_reply_switch($)
                pidl "\t\tif (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_ASYNC) {\n";
                pidl "\t\t\tDEBUG(5,(\"function $fn->{NAME} replied async\\n\"));\n";
                pidl "\t\t}\n";
-               pidl "\t\tif (DEBUGLEVEL > 10 && dce_call->fault_code == 0) {\n";
+               pidl "\t\tif (DEBUGLEVEL >= 10 && dce_call->fault_code == 0) {\n";
                pidl "\t\t\tNDR_PRINT_FUNCTION_DEBUG($fn->{NAME}, NDR_OUT | NDR_SET_VALUES, r2);\n";
                pidl "\t\t}\n";
                pidl "\t\tif (dce_call->fault_code != 0) {\n";