]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
auth3: Modernize DEBUGs
authorVolker Lendecke <vl@samba.org>
Wed, 1 Jul 2026 15:04:45 +0000 (17:04 +0200)
committerAnoop C S <anoopcs@samba.org>
Fri, 3 Jul 2026 04:47:29 +0000 (04:47 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/auth/auth.c

index a8e93ffe44648d3b4c9192a16369cec6716c35d9..a00df8d7ab1da9cd9b56e60352124789767c982c 100644 (file)
@@ -433,8 +433,7 @@ static bool load_auth_module(
                initialised_static_modules = True;
        }
 
-       DEBUG(5,("load_auth_module: Attempting to find an auth method to match %s\n",
-                module));
+       DBG_INFO("Attempting to find an auth method to match %s\n", module);
 
        memcpy(module_name, module, sizeof(module_name));
 
@@ -457,15 +456,15 @@ static bool load_auth_module(
 
        if (entry != NULL) {
                if (!NT_STATUS_IS_OK(entry->init(auth_context, module_params, ret))) {
-                       DEBUG(0,("load_auth_module: auth method %s did not correctly init\n",
-                                module_name));
+                       DBG_ERR("auth method %s did not correctly init\n",
+                               module_name);
                } else {
-                       DEBUG(5,("load_auth_module: auth method %s has a valid init\n",
-                                module_name));
+                       DBG_INFO("auth method %s has a valid init\n",
+                                module_name);
                        good = True;
                }
        } else {
-               DEBUG(0,("load_auth_module: can't find auth method %s!\n", module_name));
+               DBG_ERR("can't find auth method %s!\n", module_name);
        }
 
        return good;