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;
}
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;
}