From a3a3086a2a35021bcf4dd4d3bcaeb51eb1b44a19 Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Fri, 18 Jan 2013 18:36:45 +0100 Subject: dns: Also print packet information for DBGC_DNS Signed-off-by: Kai Blin Reviewed-by: Andrew Bartlett Autobuild-User(master): Kai Blin Autobuild-Date(master): Sat May 18 12:48:15 CEST 2013 on sn-devel-104 --- source4/dns_server/dns_server.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source4/dns_server/dns_server.c b/source4/dns_server/dns_server.c index 70020f40e0..bb4605f56a 100644 --- a/source4/dns_server/dns_server.c +++ b/source4/dns_server/dns_server.c @@ -133,7 +133,7 @@ static struct tevent_req *dns_process_send(TALLOC_CTX *mem_ctx, tevent_req_werror(req, WERR_INVALID_PARAM); return tevent_req_post(req, ev); } - dump_data(8, in->data, in->length); + dump_data_dbgc(DBGC_DNS, 8, in->data, in->length); ndr_err = ndr_pull_struct_blob( in, state, &state->in_packet, @@ -144,8 +144,8 @@ static struct tevent_req *dns_process_send(TALLOC_CTX *mem_ctx, tevent_req_done(req); return tevent_req_post(req, ev); } - if (DEBUGLVL(8)) { - NDR_PRINT_DEBUG(dns_name_packet, &state->in_packet); + if (DEBUGLVLC(DBGC_DNS, 8)) { + NDR_PRINT_DEBUGC(DBGC_DNS, dns_name_packet, &state->in_packet); } ret = dns_verify_tsig(dns, state, &state->state, &state->in_packet, in); @@ -239,8 +239,8 @@ static WERROR dns_process_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, } } - if (DEBUGLVL(8)) { - NDR_PRINT_DEBUG(dns_name_packet, &state->out_packet); + if (DEBUGLVLC(DBGC_DNS, 8)) { + NDR_PRINT_DEBUGC(DBGC_DNS, dns_name_packet, &state->out_packet); } ndr_err = ndr_push_struct_blob( -- cgit