]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dns_update.c: use DBG* macros instead of static log level numbers
authorBjörn Jacke <bj@sernet.de>
Tue, 6 Jun 2023 23:50:39 +0000 (01:50 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 16 Jun 2023 20:28:29 +0000 (20:28 +0000)
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 <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dns_server/dns_update.c

index 9ae1c472e838989472f4d27e7a126b6a310284a3..2caebd5b2af88b270dffbf168f829a21b40a8ffb 100644 (file)
@@ -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));
                                }