summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2013-01-18 18:36:45 +0100
committerKai Blin <kai@samba.org>2013-05-18 12:48:15 +0200
commita3a3086a2a35021bcf4dd4d3bcaeb51eb1b44a19 (patch)
treef1d24bae957fa53a0280ef209c631b5fed3776ed /source4
parent0f5e9d29f607f9d910641632dfcd20ef800b0bc4 (diff)
downloadsamba-a3a3086a2a35021bcf4dd4d3bcaeb51eb1b44a19.tar.gz
samba-a3a3086a2a35021bcf4dd4d3bcaeb51eb1b44a19.tar.bz2
samba-a3a3086a2a35021bcf4dd4d3bcaeb51eb1b44a19.zip
dns: Also print packet information for DBGC_DNS
Signed-off-by: Kai Blin <kai@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Sat May 18 12:48:15 CEST 2013 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r--source4/dns_server/dns_server.c10
1 files 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(