]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: tiny change in debug output
authorKarel Zak <kzak@redhat.com>
Mon, 17 May 2010 21:45:13 +0000 (23:45 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 18 May 2010 13:05:00 +0000 (15:05 +0200)
Use uint64_t rather than ssize_t for number of read bytes.

Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/probe.c

index 89c5950430934952717bc4e822e510e7ee3b430f..370ef133501e3b93e3f59fdbe44c6cc810845e76 100644 (file)
 #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);