From 6b47ea111867c845974aa2687a658ebca2854816 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 29 Oct 2009 19:49:10 +0100 Subject: [PATCH] client: improve "control timed out" debug message * add __location__ * wrap overly long line * print unsigned ints as unsigned (reqid, opcode, destnode) Michael --- client/ctdb_client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/ctdb_client.c b/client/ctdb_client.c index d47f771d..283b7886 100644 --- a/client/ctdb_client.c +++ b/client/ctdb_client.c @@ -766,7 +766,9 @@ static void control_timeout_func(struct event_context *ev, struct timed_event *t { struct ctdb_client_control_state *state = talloc_get_type(private_data, struct ctdb_client_control_state); - DEBUG(DEBUG_ERR,("control timed out. reqid:%d opcode:%d dstnode:%d\n", state->reqid, state->c->opcode, state->c->hdr.destnode)); + DEBUG(DEBUG_ERR,(__location__ " control timed out. reqid:%u opcode:%u " + "dstnode:%u\n", state->reqid, state->c->opcode, + state->c->hdr.destnode)); state->state = CTDB_CONTROL_TIMEOUT; -- 2.34.1