From: Björn Jacke Date: Tue, 6 Jun 2023 23:50:39 +0000 (+0200) Subject: dns_update.c: use DBG* macros instead of static log level numbers X-Git-Tag: talloc-2.4.1~330 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa700369a96663423b3b766d335d52d3f22698ea;p=thirdparty%2Fsamba.git dns_update.c: use DBG* macros instead of static log level numbers Some log levels change because the macros don't cover all the previously used log levels or because importance was slightly reconsidered. Signed-off-by: Bjoern Jacke Reviewed-by: Andrew Bartlett --- diff --git a/source4/dns_server/dns_update.c b/source4/dns_server/dns_update.c index 9ae1c472e83..2caebd5b2af 100644 --- a/source4/dns_server/dns_update.c +++ b/source4/dns_server/dns_update.c @@ -394,8 +394,8 @@ static WERROR handle_one_update(struct dns_server *dns, bool needs_add = false; bool name_is_static; - DEBUG(2, ("Looking at record: \n")); - if (DEBUGLVL(2)) { + DBG_NOTICE("Looking at record: \n"); + if (DEBUGLVL(DBGLVL_NOTICE)) { NDR_PRINT_DEBUG(dns_res_rec, discard_const(update)); } @@ -439,7 +439,7 @@ static WERROR handle_one_update(struct dns_server *dns, if (rcount != 1) { DBG_WARNING("Tombstoned dnsNode has %u records, " "expected 1\n", rcount); - if (DEBUGLVL(1)) { + if (DEBUGLVL(DBGLVL_WARNING)) { NDR_PRINT_DEBUG(dns_res_rec, discard_const(update)); } } @@ -538,7 +538,7 @@ static WERROR handle_one_update(struct dns_server *dns, continue; } DBG_ERR("Duplicate SOA records found.\n"); - if (DEBUGLVL(0)) { + if (DEBUGLVL(DBGLVL_ERR)) { NDR_PRINT_DEBUG(dns_res_rec, discard_const(update)); }