]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-daemon: Modernise some DEBUGs
authorMartin Schwenke <mschwenke@ddn.com>
Mon, 19 May 2025 00:06:21 +0000 (10:06 +1000)
committerJule Anger <janger@samba.org>
Mon, 2 Jun 2025 12:44:29 +0000 (12:44 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15858

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Thu May 29 10:57:35 UTC 2025 on atb-devel-224

(cherry picked from commit 5a582bddd834fffe2b27cc8b2e9468fa84dfc6f2)

Autobuild-User(v4-21-test): Jule Anger <janger@samba.org>
Autobuild-Date(v4-21-test): Mon Jun  2 12:44:29 UTC 2025 on atb-devel-224

ctdb/server/ctdb_daemon.c

index 1fd646c3758878816961870b18513186d0c84108..25e742961bf93a510183bf2b47695fd8123beed2 100644 (file)
@@ -2444,11 +2444,11 @@ done:
 void ctdb_shutdown_sequence(struct ctdb_context *ctdb, int exit_code)
 {
        if (ctdb->runstate == CTDB_RUNSTATE_SHUTDOWN) {
-               DEBUG(DEBUG_NOTICE,("Already shutting down so will not proceed.\n"));
+               D_NOTICE("Already shutting down so will not proceed.\n");
                return;
        }
 
-       DEBUG(DEBUG_ERR,("Shutdown sequence commencing.\n"));
+       D_ERR("Shutdown sequence commencing.\n");
        ctdb_set_runstate(ctdb, CTDB_RUNSTATE_SHUTDOWN);
        ctdb_shutdown_takeover(ctdb);
        ctdb_stop_recoverd(ctdb);
@@ -2460,7 +2460,7 @@ void ctdb_shutdown_sequence(struct ctdb_context *ctdb, int exit_code)
                ctdb->methods->shutdown(ctdb);
        }
 
-       DEBUG(DEBUG_ERR,("Shutdown sequence complete, exiting.\n"));
+       D_ERR("Shutdown sequence complete, exiting.\n");
        exit(exit_code);
 }