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:
parent
80a2905883
commit
5f306327fe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=304221
@ -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));
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user