diff options
author | relan <relan@users.noreply.github.com> | 2009-12-20 16:14:10 +0000 |
---|---|---|
committer | relan <relan@users.noreply.github.com> | 2015-08-24 08:26:11 +0300 |
commit | 4e236c25364306cd2fb555e958f6f90e7cc93902 (patch) | |
tree | 231518586e1de7e9730eeb4634ac6e9084d8404b /libexfat/io.c | |
parent | d4346c1fb41060bcb447e3553e32604bdac41527 (diff) | |
download | android_external_exfat-4e236c25364306cd2fb555e958f6f90e7cc93902.tar.gz android_external_exfat-4e236c25364306cd2fb555e958f6f90e7cc93902.tar.bz2 android_external_exfat-4e236c25364306cd2fb555e958f6f90e7cc93902.zip |
Fix format strings warnings.
Diffstat (limited to 'libexfat/io.c')
-rw-r--r-- | libexfat/io.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libexfat/io.c b/libexfat/io.c index 9355e51..34144af 100644 --- a/libexfat/io.c +++ b/libexfat/io.c @@ -8,6 +8,7 @@ */ #include "exfat.h" +#include <inttypes.h> #include <sys/types.h> #include <sys/uio.h> #define __USE_UNIX98 /* for pread() in Linux */ @@ -20,13 +21,15 @@ void exfat_read_raw(void* buffer, size_t size, off_t offset, int fd) { if (pread(fd, buffer, size, offset) != size) - exfat_bug("failed to read %zu bytes from file at %llu", size, offset); + exfat_bug("failed to read %zu bytes from file at %"PRIu64, size, + (uint64_t) offset); } void exfat_write_raw(const void* buffer, size_t size, off_t offset, int fd) { if (pwrite(fd, buffer, size, offset) != size) - exfat_bug("failed to write %zu bytes to file at %llu", size, offset); + exfat_bug("failed to write %zu bytes to file at %"PRIu64, size, + (uint64_t) offset); } ssize_t exfat_read(const struct exfat* ef, struct exfat_node* node, |