1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

pidl: add NDR_PRINT_DEBUG output to generated s3 server dispatch tables.

This dramatically helps tracking and debugging usage of the
rpc_pipe_open_internal users.

Guenther
This commit is contained in:
Günther Deschner 2010-05-07 22:54:08 +02:00
parent 58b5a16444
commit 0798ddf63a

View File

@ -243,8 +243,18 @@ sub ParseDispatchFunction($)
pidl "case $op: {"; pidl "case $op: {";
indent; indent;
pidl "struct $fn->{NAME} *r = (struct $fn->{NAME} *)_r;"; pidl "struct $fn->{NAME} *r = (struct $fn->{NAME} *)_r;";
pidl "if (DEBUGLEVEL >= 10) {";
pidl "\tNDR_PRINT_IN_DEBUG($fn->{NAME}, r);";
pidl "}";
CallWithStruct("cli->pipes_struct", "mem_ctx", $fn, CallWithStruct("cli->pipes_struct", "mem_ctx", $fn,
sub { pidl "\treturn NT_STATUS_NO_MEMORY;"; }); sub { pidl "\treturn NT_STATUS_NO_MEMORY;"; });
pidl "if (DEBUGLEVEL >= 10) {";
pidl "\tNDR_PRINT_OUT_DEBUG($fn->{NAME}, r);";
pidl "}";
pidl "return NT_STATUS_OK;"; pidl "return NT_STATUS_OK;";
deindent; deindent;
pidl "}"; pidl "}";