diff options
author | Stefan Metzmacher <metze@samba.org> | 2015-02-17 08:38:36 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-10-26 11:20:13 +0200 |
commit | 3d51359c86c05ec74220afb122d806fa5045c65f (patch) | |
tree | da770b7c52bbf385a6dff6207e870f1a1c30b9a4 /source4/librpc/rpc/dcerpc.c | |
parent | 10e97240efb3dc22142769c25b2c7e2d4475402d (diff) | |
download | samba-3d51359c86c05ec74220afb122d806fa5045c65f.tar.gz |
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>
Diffstat (limited to 'source4/librpc/rpc/dcerpc.c')
-rw-r--r-- | source4/librpc/rpc/dcerpc.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c index 0614eae46c2..edb4e7e852c 100644 --- a/source4/librpc/rpc/dcerpc.c +++ b/source4/librpc/rpc/dcerpc.c @@ -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, |