From 0c47b4e7ca21ef47aef43d13566bde678dc2740f Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 19 May 2025 10:06:21 +1000 Subject: [PATCH] ctdb-daemon: Modernise some DEBUGs BUG: https://bugzilla.samba.org/show_bug.cgi?id=15858 Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs Autobuild-User(master): Martin Schwenke Autobuild-Date(master): Thu May 29 10:57:35 UTC 2025 on atb-devel-224 (cherry picked from commit 5a582bddd834fffe2b27cc8b2e9468fa84dfc6f2) --- ctdb/server/ctdb_daemon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ctdb/server/ctdb_daemon.c b/ctdb/server/ctdb_daemon.c index 9d422a2202e..3bdf9fee6f5 100644 --- a/ctdb/server/ctdb_daemon.c +++ b/ctdb/server/ctdb_daemon.c @@ -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); } -- 2.47.2