]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
loadparm: Modernize DEBUGs
authorVolker Lendecke <vl@samba.org>
Wed, 7 Jan 2026 11:52:04 +0000 (12:52 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 20 Jan 2026 11:53:34 +0000 (11:53 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/param/loadparm.c

index 4cd2b1f9e872e8398c134f896059a2bb3fe1b2b4..410cb3ea937e5b4f006c152b38ea4bdc91324f5f 100644 (file)
@@ -1561,8 +1561,7 @@ static int add_a_service(const struct loadparm_service *pservice, const char *na
                                     struct loadparm_service *,
                                     iNumServices + 1);
                if (tsp == NULL) {
-                       DEBUG(0, ("add_a_service: failed to enlarge "
-                                 "ServicePtrs!\n"));
+                       DBG_ERR("failed to enlarge ServicePtrs!\n");
                        return (-1);
                }
                ServicePtrs = tsp;
@@ -1570,7 +1569,7 @@ static int add_a_service(const struct loadparm_service *pservice, const char *na
        }
        ServicePtrs[i] = talloc_zero(ServicePtrs, struct loadparm_service);
        if (!ServicePtrs[i]) {
-               DEBUG(0,("add_a_service: out of memory!\n"));
+               DBG_ERR("out of memory!\n");
                return (-1);
        }
 
@@ -1581,8 +1580,7 @@ static int add_a_service(const struct loadparm_service *pservice, const char *na
                lpcfg_string_set(ServicePtrs[i], &ServicePtrs[i]->szService,
                                 name);
 
-       DEBUG(8,("add_a_service: Creating snum = %d for %s\n",
-               i, ServicePtrs[i]->szService));
+       DBG_DEBUG("Creating snum = %d for %s\n", i, ServicePtrs[i]->szService);
 
        if (!hash_a_service(ServicePtrs[i]->szService, i)) {
                return (-1);