r24031: Fix some 64 bit warnings
authorVolker Lendecke <vlendec@samba.org>
Tue, 24 Jul 2007 11:45:29 +0000 (11:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:28:57 +0000 (12:28 -0500)
source/lib/ctdbd_conn.c

index b926c533b53bba0af585c4107a129e5b5fd23fc6..f3b6bd4b5b54bc0bcf9e08f28643db6740ce7d03 100644 (file)
@@ -157,8 +157,8 @@ static BOOL ctdb_req_complete(const struct data_blob *data,
 
        if (msglen < sizeof(struct ctdb_req_header)) {
                DEBUG(0, ("Got invalid msglen: %d, expected at least %d for "
-                         "the req_header\n", msglen,
-                         sizeof(struct ctdb_req_header)));
+                         "the req_header\n", (int)msglen,
+                         (int)sizeof(struct ctdb_req_header)));
                cluster_fatal("ctdbd protocol error\n");
        }
 
@@ -313,7 +313,8 @@ static NTSTATUS ctdb_read_req(struct ctdbd_connection *conn, uint32 reqid,
 
                if (conn->msg_ctx == NULL) {
                        DEBUG(1, ("Got a message without having a msg ctx, "
-                                 "dropping msg %llu\n", msg->srvid));
+                                 "dropping msg %llu\n",
+                                 (long long unsigned)msg->srvid));
                        goto again;
                }