From 7fb0b00a71f0fb05f973876a7ff50df7e2378ac6 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 7 Jan 2026 12:52:04 +0100 Subject: [PATCH] loadparm: Modernize DEBUGs Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- source3/param/loadparm.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 4cd2b1f9e87..410cb3ea937 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -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); -- 2.47.3