]> 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)
committerMartin Schwenke <martins@samba.org>
Thu, 29 May 2025 10:57:35 +0000 (10:57 +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

ctdb/server/ctdb_daemon.c

index 9d422a2202ee0801b2dfdbab4ac4ed3c92f351f1..3bdf9fee6f59865d967442195a0b5d4959a06682 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);
 }