diff options
author | Karel Zak | 2010-05-17 23:45:13 +0200 |
---|---|---|
committer | Karel Zak | 2010-05-18 15:05:00 +0200 |
commit | c42063316f9e568593f9c915b12c1166b933c947 (patch) | |
tree | d1cb56d5cdf05a735f348d8fb4ea7dadf20ed663 /shlibs/blkid/src/probe.c | |
parent | libblkid: improve MD 1.0 detection, add UUID_SUB (diff) | |
download | kernel-qcow2-util-linux-c42063316f9e568593f9c915b12c1166b933c947.tar.gz kernel-qcow2-util-linux-c42063316f9e568593f9c915b12c1166b933c947.tar.xz kernel-qcow2-util-linux-c42063316f9e568593f9c915b12c1166b933c947.zip |
libblkid: tiny change in debug output
Use uint64_t rather than ssize_t for number of read bytes.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/blkid/src/probe.c')
-rw-r--r-- | shlibs/blkid/src/probe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shlibs/blkid/src/probe.c b/shlibs/blkid/src/probe.c index 89c595043..370ef1335 100644 --- a/shlibs/blkid/src/probe.c +++ b/shlibs/blkid/src/probe.c @@ -103,6 +103,7 @@ #ifdef HAVE_ERRNO_H #include <errno.h> #endif +#include <inttypes.h> #include <stdint.h> #include <stdarg.h> @@ -542,7 +543,7 @@ unsigned char *blkid_probe_get_buffer(blkid_probe pr, 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; @@ -560,7 +561,8 @@ static void blkid_probe_reset_buffer(blkid_probe pr) } 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); |