From: Martin Schwenke Date: Mon, 19 May 2025 00:06:21 +0000 (+1000) Subject: ctdb-daemon: Modernise some DEBUGs X-Git-Tag: samba-4.21.6~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f1fc08c428ba64031cf7afd21478fc1664756b8;p=thirdparty%2Fsamba.git 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) Autobuild-User(v4-21-test): Jule Anger Autobuild-Date(v4-21-test): Mon Jun 2 12:44:29 UTC 2025 on atb-devel-224 --- diff --git a/ctdb/server/ctdb_daemon.c b/ctdb/server/ctdb_daemon.c index 1fd646c3758..25e742961bf 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); }