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:
parent
58b5a16444
commit
0798ddf63a
@ -243,8 +243,18 @@ sub ParseDispatchFunction($)
|
||||
pidl "case $op: {";
|
||||
indent;
|
||||
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,
|
||||
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;";
|
||||
deindent;
|
||||
pidl "}";
|
||||
|
Loading…
Reference in New Issue
Block a user