]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-daemon: Improve some debug
authorMartin Schwenke <mschwenke@ddn.com>
Mon, 18 May 2026 02:31:26 +0000 (12:31 +1000)
committerMartin Schwenke <martins@samba.org>
Thu, 25 Jun 2026 22:32:30 +0000 (22:32 +0000)
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 <mschwenke@ddn.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
ctdb/server/ctdb_takeover.c

index b675e4b526dc3950d368f516deadfa1d5ebb1823..4a8301ea8fe6296f34c61326640f2c2f3ff8f6cf 100644 (file)
@@ -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);