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

s4:librpc/rpc: force printing in dcerpc_bh_do_ndr_print() log level >= 11

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Stefan Metzmacher 2015-02-17 08:38:36 +01:00 committed by Andreas Schneider
parent 10e97240ef
commit 3d51359c86

View File

@ -441,9 +441,24 @@ static void dcerpc_bh_do_ndr_print(struct dcerpc_binding_handle *h,
struct dcerpc_bh_state *hs = dcerpc_binding_handle_data(h,
struct dcerpc_bh_state);
void *struct_ptr = discard_const(_struct_ptr);
bool print_in = false;
bool print_out = false;
if (hs->p->conn->flags & DCERPC_DEBUG_PRINT_IN) {
print_in = true;
}
if (hs->p->conn->flags & DCERPC_DEBUG_PRINT_OUT) {
print_out = true;
}
if (DEBUGLEVEL >= 11) {
print_in = true;
print_out = true;
}
if (ndr_flags & NDR_IN) {
if (hs->p->conn->flags & DCERPC_DEBUG_PRINT_IN) {
if (print_in) {
ndr_print_function_debug(call->ndr_print,
call->name,
ndr_flags,
@ -451,7 +466,7 @@ static void dcerpc_bh_do_ndr_print(struct dcerpc_binding_handle *h,
}
}
if (ndr_flags & NDR_OUT) {
if (hs->p->conn->flags & DCERPC_DEBUG_PRINT_OUT) {
if (print_out) {
ndr_print_function_debug(call->ndr_print,
call->name,
ndr_flags,