summaryrefslogtreecommitdiffstats
path: root/sys-utils/blkzone.c
diff options
context:
space:
mode:
authorRuediger Meier2017-04-07 13:35:58 +0200
committerKarel Zak2017-04-10 15:40:58 +0200
commitc8df4b17d47eeaca6ed274b311e80f77013f5e8d (patch)
tree9071d97749f69d76f1782ae22763570b1b2f3da8 /sys-utils/blkzone.c
parentlibmount: fix file descriptor leak (diff)
downloadkernel-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 'sys-utils/blkzone.c')
-rw-r--r--sys-utils/blkzone.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys-utils/blkzone.c b/sys-utils/blkzone.c
index e2c33770c..1457225c9 100644
--- a/sys-utils/blkzone.c
+++ b/sys-utils/blkzone.c
@@ -195,7 +195,7 @@ static int blkzone_report(struct blkzone_control *ctl)
err(EXIT_FAILURE, _("%s: BLKREPORTZONE ioctl failed"), ctl->devname);
if (ctl->verbose)
- printf(_("Found %d zones from 0x%lx\n"),
+ printf(_("Found %d zones from 0x%"PRIx64"\n"),
zi->nr_zones, ctl->offset);
if (!zi->nr_zones) {
@@ -216,7 +216,7 @@ static int blkzone_report(struct blkzone_control *ctl)
break;
}
- printf(_(" start: 0x%09lx, len 0x%06lx, wptr 0x%06lx"
+ printf(_(" start: 0x%09"PRIx64", len 0x%06"PRIx64", wptr 0x%06"PRIx64
" reset:%u non-seq:%u, zcond:%2u(%s) [type: %u(%s)]\n"),
start, len, (type == 0x1) ? 0 : wp - start,
entry->reset, entry->non_seq,
@@ -254,7 +254,7 @@ static int blkzone_reset(struct blkzone_control *ctl)
if (ctl->offset & (zonesize - 1))
errx(EXIT_FAILURE, _("%s: offset %" PRIu64 " is not aligned "
- "to zone size %" PRIu64),
+ "to zone size %lu"),
ctl->devname, ctl->offset, zonesize);
if (ctl->offset > ctl->total_sectors)
@@ -273,7 +273,7 @@ static int blkzone_reset(struct blkzone_control *ctl)
(zlen & (zonesize - 1)) &&
ctl->offset + zlen != ctl->total_sectors)
errx(EXIT_FAILURE, _("%s: number of sectors %" PRIu64 " is not aligned "
- "to zone size %" PRIu64),
+ "to zone size %lu"),
ctl->devname, ctl->length, zonesize);
za.sector = ctl->offset;