From: Martin Schwenke Date: Mon, 18 May 2026 02:31:26 +0000 (+1000) Subject: ctdb-daemon: Improve some debug X-Git-Tag: talloc-2.5.0~378 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32f4b7950028da604740e2af65560f743a5ce994;p=thirdparty%2Fsamba.git ctdb-daemon: Improve some debug TAKE_IP needs the word "message" to distinguish from "control". Neither need the location, since the messages are now clear. Signed-off-by: Martin Schwenke Reviewed-by: Ralph Boehme --- diff --git a/ctdb/server/ctdb_takeover.c b/ctdb/server/ctdb_takeover.c index b675e4b526d..4a8301ea8fe 100644 --- a/ctdb/server/ctdb_takeover.c +++ b/ctdb/server/ctdb_takeover.c @@ -513,7 +513,7 @@ static void ctdb_do_takeip_callback(struct ctdb_context *ctdb, int status, data.dptr = (uint8_t *)discard_const( ctdb_vnn_address_string(state->vnn)); data.dsize = strlen((char *)data.dptr) + 1; - DEBUG(DEBUG_INFO,(__location__ " sending TAKE_IP for '%s'\n", data.dptr)); + D_INFO("Sending TAKE_IP message [%s]\n", data.dptr); ctdb_daemon_send_message(ctdb, ctdb->pnn, CTDB_SRVID_TAKE_IP, data); @@ -887,7 +887,7 @@ static struct ctdb_vnn *release_ip_post(struct ctdb_context *ctdb, */ data.dptr = (uint8_t *)ctdb_addr_to_str(addr); data.dsize = strlen((char *)data.dptr)+1; - DEBUG(DEBUG_INFO, ("Sending RELEASE_IP message for %s\n", data.dptr)); + D_INFO("Sending RELEASE_IP message [%s]\n", data.dptr); ctdb_daemon_send_message(ctdb, ctdb->pnn, CTDB_SRVID_RELEASE_IP, data); ctdb_vnn_unassign_iface(ctdb, vnn);