ctdbd_conn: Simplify two DEBUGs
authorVolker Lendecke <vl@samba.org>
Tue, 19 Apr 2016 14:02:49 +0000 (16:02 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 17 May 2016 11:18:31 +0000 (13:18 +0200)
msg->hdr.length is a uint32 and we have PRIu32

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/ctdbd_conn.c

index f14a31af0e4e3209df6d5100e83974f09987a22d..82abdf959373892752b0cc4e7fea1f6e4d05dc92 100644 (file)
@@ -142,20 +142,19 @@ int register_with_ctdbd(struct ctdbd_connection *conn, uint64_t srvid,
 static int ctdbd_msg_call_back(struct ctdbd_connection *conn,
                               struct ctdb_req_message_old *msg)
 {
-       size_t msg_len;
+       uint32_t msg_len;
        size_t i, num_callbacks;
 
        msg_len = msg->hdr.length;
        if (msg_len < offsetof(struct ctdb_req_message_old, data)) {
-               DEBUG(10, ("%s: len %u too small\n", __func__,
-                          (unsigned)msg_len));
+               DBG_DEBUG("len %"PRIu32" too small\n", msg_len);
                return 0;
        }
        msg_len -= offsetof(struct ctdb_req_message_old, data);
 
        if (msg_len < msg->datalen) {
-               DEBUG(10, ("%s: msg_len=%u < msg->datalen=%u\n", __func__,
-                          (unsigned)msg_len, (unsigned)msg->datalen));
+               DBG_DEBUG("msg_len=%"PRIu32" < msg->datalen=%"PRIu32"\n",
+                         msg_len, msg->datalen);
                return 0;
        }