diff options
author | Martin Schwenke <martin@meltin.net> | 2013-09-18 13:40:10 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2013-10-04 15:15:35 +1000 |
commit | b527236efea0f5f40ab9cfe23d244aa6a8060173 (patch) | |
tree | 731c969bd605e2c36eb88971f2f3726670f8a24c /ctdb/client/ctdb_client.c | |
parent | e229ff613379e6ae555dc0282237deaaa9d2206e (diff) | |
download | samba-b527236efea0f5f40ab9cfe23d244aa6a8060173.tar.gz samba-b527236efea0f5f40ab9cfe23d244aa6a8060173.tar.xz samba-b527236efea0f5f40ab9cfe23d244aa6a8060173.zip |
client: Fix some format string compiler warnings
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 5619754343003016ede27014567dbb4701f97928)
Diffstat (limited to 'ctdb/client/ctdb_client.c')
-rw-r--r-- | ctdb/client/ctdb_client.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ctdb/client/ctdb_client.c b/ctdb/client/ctdb_client.c index 43670519c1..997a234973 100644 --- a/ctdb/client/ctdb_client.c +++ b/ctdb/client/ctdb_client.c @@ -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; } |