From: Martin Schwenke Date: Sun, 17 May 2026 09:13:13 +0000 (+1000) Subject: ctdb-daemon: Modernise some debugs X-Git-Tag: talloc-2.5.0~382 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b59c7b86009d7a9427ede3b9fb039afded8aef3;p=thirdparty%2Fsamba.git ctdb-daemon: Modernise some debugs Signed-off-by: Martin Schwenke Reviewed-by: Ralph Boehme --- diff --git a/ctdb/server/eventscript.c b/ctdb/server/eventscript.c index 6409ab508ba..9f895211614 100644 --- a/ctdb/server/eventscript.c +++ b/ctdb/server/eventscript.c @@ -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; }