Use uint64_t rather than ssize_t for number of read bytes.
Signed-off-by: Karel Zak <kzak@redhat.com>
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
+#include <inttypes.h>
#include <stdint.h>
#include <stdarg.h>
static void blkid_probe_reset_buffer(blkid_probe pr)
{
- ssize_t read_ct = 0, len_ct = 0;
+ uint64_t read_ct = 0, len_ct = 0;
if (!pr || list_empty(&pr->buffers))
return;
}
DBG(DEBUG_LOWPROBE,
- printf("buffers summary: %jd bytes by %jd read() call(s)\n",
+ printf("buffers summary: %"PRIu64" bytes "
+ "by %"PRIu64" read() call(s)\n",
len_ct, read_ct));
INIT_LIST_HEAD(&pr->buffers);