From fdbd7bb94051bce49a40b0e055bfa21755de3b1c Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Mon, 22 Feb 2016 11:58:05 +0100 Subject: misc: again fixing many printf format strings This is again a huge patch regarding printf format strings to fix compiler warnings seen on clang/OSX. I'm trying to follow these rules strictly: #type #format #cast uintmax_t %ju - intmax_t %jd - uint64_t PRIu64 - int64_t PRId64 - size_t %zu - ssize_t %zd - ino_t %ju (uintmax_t) off_t %jd (intmax_t) Signed-off-by: Ruediger Meier --- libblkid/samples/partitions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libblkid/samples') diff --git a/libblkid/samples/partitions.c b/libblkid/samples/partitions.c index fe0ad4827..318e9dbad 100644 --- a/libblkid/samples/partitions.c +++ b/libblkid/samples/partitions.c @@ -49,10 +49,10 @@ int main(int argc, char *argv[]) "known partition table\n", devname); printf("size: %jd, sector size: %u, PT: %s, offset: %jd, id=%s\n---\n", - blkid_probe_get_size(pr), + (intmax_t)blkid_probe_get_size(pr), blkid_probe_get_sectorsize(pr), blkid_parttable_get_type(root_tab), - blkid_parttable_get_offset(root_tab), + (intmax_t)blkid_parttable_get_offset(root_tab), blkid_parttable_get_id(root_tab)); /* -- cgit v1.2.3-55-g7522