client: Fix some format string compiler warnings
authorMartin Schwenke <martin@meltin.net>
Wed, 18 Sep 2013 03:40:10 +0000 (13:40 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 4 Oct 2013 05:15:35 +0000 (15:15 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
client/ctdb_client.c

index 43670519c1a974a263165479368c58da11cf176f..997a2349730d0023a8315d50cce0b6f78c89361c 100644 (file)
@@ -534,7 +534,8 @@ int ctdb_client_check_message_handlers(struct ctdb_context *ctdb, uint64_t *ids,
 
        if (outdata.dsize != num*sizeof(uint8_t)) {
                DEBUG(DEBUG_ERR, (__location__ " expected %lu bytes, received %zi bytes\n",
-                                 num*sizeof(uint8_t), outdata.dsize));
+                                 (long unsigned int)num*sizeof(uint8_t),
+                                 outdata.dsize));
                talloc_free(outdata.dptr);
                return -1;
        }
@@ -1257,7 +1258,8 @@ int ctdb_ctrl_dbstatistics(struct ctdb_context *ctdb, uint32_t destnode, uint32_
 
        if (outdata.dsize < offsetof(struct ctdb_db_statistics, hot_keys_wire)) {
                DEBUG(DEBUG_ERR,(__location__ " Wrong dbstatistics size %zi - expected >= %lu\n",
-                                outdata.dsize, sizeof(struct ctdb_statistics)));
+                                outdata.dsize,
+                                (long unsigned int)sizeof(struct ctdb_statistics)));
                return -1;
        }