Use %ju modifier for u_int64_t and %jd modifier for off_t.

off_t is long long on arm32 and long on amd64

MFC after:	1 week
This commit is contained in:
Emmanuel Vadot 2016-08-16 14:23:35 +00:00
parent 80a2905883
commit 5f306327fe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=304221
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ dskread(void *buf, u_int64_t lba, int nblk)
devinfo->dev->Media->MediaId, lba, size, buf);
if (status != EFI_SUCCESS) {
DPRINTF("dskread: failed dev: %p, id: %u, lba: %lu, size: %d, "
DPRINTF("dskread: failed dev: %p, id: %u, lba: %zu, size: %d, "
"status: %lu\n", devinfo->dev,
devinfo->dev->Media->MediaId, lba, size,
EFI_ERROR_CODE(status));

View File

@ -53,7 +53,7 @@ vdev_read(vdev_t *vdev, void *priv, off_t off, void *buf, size_t bytes)
status = devinfo->dev->ReadBlocks(devinfo->dev,
devinfo->dev->Media->MediaId, lba, bytes, buf);
if (status != EFI_SUCCESS) {
DPRINTF("vdev_read: failed dev: %p, id: %u, lba: %zu, size: %zu,"
DPRINTF("vdev_read: failed dev: %p, id: %u, lba: %jd, size: %zu,"
" status: %lu\n", devinfo->dev,
devinfo->dev->Media->MediaId, lba, bytes,
EFI_ERROR_CODE(status));