client: improve "control timed out" debug message
authorMichael Adam <obnox@samba.org>
Thu, 29 Oct 2009 18:49:10 +0000 (19:49 +0100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 29 Oct 2009 22:22:52 +0000 (09:22 +1100)
* add __location__
* wrap overly long line
* print unsigned ints as unsigned (reqid, opcode, destnode)

Michael

client/ctdb_client.c

index d47f771d3da817f827fdbe18d2fe2f6991397186..283b7886cfb25a92b5b1c7aa5de3e54f51674f58 100644 (file)
@@ -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;