diff options
author | Ruediger Meier | 2017-04-07 13:35:58 +0200 |
---|---|---|
committer | Karel Zak | 2017-04-10 15:40:58 +0200 |
commit | c8df4b17d47eeaca6ed274b311e80f77013f5e8d (patch) | |
tree | 9071d97749f69d76f1782ae22763570b1b2f3da8 /libblkid | |
parent | libmount: fix file descriptor leak (diff) | |
download | kernel-qcow2-util-linux-c8df4b17d47eeaca6ed274b311e80f77013f5e8d.tar.gz kernel-qcow2-util-linux-c8df4b17d47eeaca6ed274b311e80f77013f5e8d.tar.xz kernel-qcow2-util-linux-c8df4b17d47eeaca6ed274b311e80f77013f5e8d.zip |
misc: fix some printf format strings
Fix compiler warnings seen on Linux/i586 and OSX/travis.
#type #format #cast
unsigned long %lu -
uint64_t PRIu64 -
fdisk_sector_t %ju (uintmax_t)
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'libblkid')
-rw-r--r-- | libblkid/src/partitions/gpt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libblkid/src/partitions/gpt.c b/libblkid/src/partitions/gpt.c index b7d050653..52704ed63 100644 --- a/libblkid/src/partitions/gpt.c +++ b/libblkid/src/partitions/gpt.c @@ -18,6 +18,7 @@ #include <stdint.h> #include <stddef.h> #include <limits.h> +#include <inttypes.h> #include "partitions.h" #include "crc32.h" @@ -217,7 +218,7 @@ static struct gpt_header *get_gpt_header( ssz = blkid_probe_get_sectorsize(pr); - DBG(LOWPROBE, ul_debug(" checking for GPT header at %ju", lba)); + DBG(LOWPROBE, ul_debug(" checking for GPT header at %"PRIu64, lba)); /* whole sector is allocated for GPT header */ h = (struct gpt_header *) get_lba_buffer(pr, lba, ssz); |