]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-daemon: Modernise some debugs
authorMartin Schwenke <mschwenke@ddn.com>
Sun, 17 May 2026 09:13:13 +0000 (19:13 +1000)
committerMartin Schwenke <martins@samba.org>
Thu, 25 Jun 2026 22:32:30 +0000 (22:32 +0000)
Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
ctdb/server/eventscript.c

index 6409ab508ba17ab3912373ad6bab2f43dbac6e97..9f895211614a20e7bc06db21d19bfe474edc5f4f 100644 (file)
@@ -600,9 +600,8 @@ int ctdb_event_script_run(struct ctdb_context *ctdb,
 
        if ( (ctdb->recovery_mode != CTDB_RECOVERY_NORMAL) &&
             (! event_allowed_during_recovery(event)) ) {
-               DEBUG(DEBUG_ERR,
-                     ("Refusing to run event '%s' while in recovery\n",
-                      ctdb_event_to_string(event)));
+               D_ERR("Refusing to run event '%s' while in recovery\n",
+                     ctdb_event_to_string(event));
                return -1;
        }
 
@@ -627,9 +626,9 @@ int ctdb_event_script_run(struct ctdb_context *ctdb,
        }
 
        if (! check_options(event, arg_str)) {
-               DEBUG(DEBUG_ERR,
-                     ("Bad event script arguments '%s' for '%s'\n",
-                      arg_str, ctdb_event_to_string(event)));
+               DBG_ERR("Bad event script arguments '%s' for '%s'\n",
+                       arg_str,
+                       ctdb_event_to_string(event));
                talloc_free(arg_str);
                return -1;
        }