misc: once again some printf format strings
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
This commit is contained in:
parent
332123f2b6
commit
eaaf0e7e37
|
@ -756,7 +756,7 @@ static int is_sector_readable(int fd, uint64_t sector)
|
|||
|
||||
return 1;
|
||||
failed:
|
||||
DBG(LOWPROBE, ul_debug("CDROM: read sector %ju failed %m", sector));
|
||||
DBG(LOWPROBE, ul_debug("CDROM: read sector %"PRIu64" failed %m", sector));
|
||||
errno = 0;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -87,7 +87,7 @@ static void zfs_extract_guid_name(blkid_probe pr, loff_t offset)
|
|||
memcpy(buff, p, sizeof(buff));
|
||||
nvl = (struct nvlist *) buff;
|
||||
|
||||
DBG(LOWPROBE, ul_debug("zfs_extract: nvlist offset %jd\n", offset));
|
||||
DBG(LOWPROBE, ul_debug("zfs_extract: nvlist offset %jd\n", (intmax_t)offset));
|
||||
|
||||
nvp = &nvl->nvl_nvpair;
|
||||
while (left > sizeof(*nvp) && nvp->nvp_size != 0 && found < 3) {
|
||||
|
@ -176,14 +176,14 @@ static int find_uberblocks(const void *label, loff_t *ub_offset, int *swap_endia
|
|||
*ub_offset = offset;
|
||||
*swap_endian = 0;
|
||||
found++;
|
||||
DBG(LOWPROBE, ul_debug("probe_zfs: found little-endian uberblock at %jd\n", offset >> 10));
|
||||
DBG(LOWPROBE, ul_debug("probe_zfs: found little-endian uberblock at %jd\n", (intmax_t)offset >> 10));
|
||||
}
|
||||
|
||||
if (ub->ub_magic == swab_magic) {
|
||||
*ub_offset = offset;
|
||||
*swap_endian = 1;
|
||||
found++;
|
||||
DBG(LOWPROBE, ul_debug("probe_zfs: found big-endian uberblock at %jd\n", offset >> 10));
|
||||
DBG(LOWPROBE, ul_debug("probe_zfs: found big-endian uberblock at %jd\n", (intmax_t)offset >> 10));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "fdiskP.h"
|
||||
|
||||
/**
|
||||
|
@ -219,7 +221,7 @@ static int test_listitems(struct fdisk_test *ts, int argc, char *argv[])
|
|||
&& fdisk_labelitem_get_data_string(item, &str) == 0)
|
||||
printf("%s: %s\n", name, str);
|
||||
else if (fdisk_labelitem_get_data_u64(item, &num) == 0)
|
||||
printf("%s: %ju\n", name, num);
|
||||
printf("%s: %"PRIu64"\n", name, num);
|
||||
break;
|
||||
}
|
||||
case 1: /* item unsuported by label -- ignore */
|
||||
|
|
Loading…
Reference in New Issue