summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2011-11-15 08:38:27 +0100
committerKai Blin <kai@samba.org>2011-11-17 20:10:05 +0100
commit468fa95df2a682c39bd46c8e451961994b91f3c4 (patch)
tree1e690b2727846979c16073a697a47fa8f28c43bd
parente5ebda41563ed6152bae9ffcf873eeee679878de (diff)
downloadsamba-468fa95df2a682c39bd46c8e451961994b91f3c4.tar.gz
s4 dns: Reduce test output noise by upping log level for dns_name_packet logging
Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Thu Nov 17 20:10:05 CET 2011 on sn-devel-104
-rw-r--r--source4/dns_server/dns_server.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/dns_server/dns_server.c b/source4/dns_server/dns_server.c
index 899ec0c1ad1..4aecc87e995 100644
--- a/source4/dns_server/dns_server.c
+++ b/source4/dns_server/dns_server.c
@@ -130,8 +130,9 @@ static NTSTATUS dns_process(struct dns_server *dns,
return NT_STATUS_OK;
}
-
- NDR_PRINT_DEBUG(dns_name_packet, in_packet);
+ if (DEBUGLVL(2)) {
+ NDR_PRINT_DEBUG(dns_name_packet, in_packet);
+ }
*out_packet = *in_packet;
out_packet->operation |= DNS_FLAG_REPLY;
@@ -168,7 +169,9 @@ static NTSTATUS dns_process(struct dns_server *dns,
out_packet->operation |= werr_to_dns_err(ret);
}
- NDR_PRINT_DEBUG(dns_name_packet, out_packet);
+ if (DEBUGLVL(2)) {
+ NDR_PRINT_DEBUG(dns_name_packet, out_packet);
+ }
ndr_err = ndr_push_struct_blob(out, out_packet, out_packet,
(ndr_push_flags_fn_t)ndr_push_dns_name_packet);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {