diff options
| author | Emmanuel Vadot <manu@FreeBSD.org> | 2016-08-17 08:29:30 +0000 |
|---|---|---|
| committer | Emmanuel Vadot <manu@FreeBSD.org> | 2016-08-17 08:29:30 +0000 |
| commit | 393fb50cbc1c30399ed33ab75dce94eb45e0e11f (patch) | |
| tree | ede66ef06e42537b93784839a90c11f42945486e | |
| parent | eacbe92463f17419ce9169fb0a2ccd3d175a29a2 (diff) | |
Correctly print and cast u_int64_t and off_t.
Reported by: ed, imp
MFC after: 1 week
Notes
svn path=/head/; revision=304271
| -rw-r--r-- | sys/boot/efi/boot1/ufs_module.c | 4 | ||||
| -rw-r--r-- | sys/boot/efi/boot1/zfs_module.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/boot/efi/boot1/ufs_module.c b/sys/boot/efi/boot1/ufs_module.c index 2efdfc7e69e5..0860a860fdf5 100644 --- a/sys/boot/efi/boot1/ufs_module.c +++ b/sys/boot/efi/boot1/ufs_module.c @@ -56,9 +56,9 @@ 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: %zu, size: %d, " + DPRINTF("dskread: failed dev: %p, id: %u, lba: %ju, size: %d, " "status: %lu\n", devinfo->dev, - devinfo->dev->Media->MediaId, lba, size, + devinfo->dev->Media->MediaId, (uintmax_t)lba, size, EFI_ERROR_CODE(status)); return (-1); } diff --git a/sys/boot/efi/boot1/zfs_module.c b/sys/boot/efi/boot1/zfs_module.c index 60ad7c0eac0c..1926a33010de 100644 --- a/sys/boot/efi/boot1/zfs_module.c +++ b/sys/boot/efi/boot1/zfs_module.c @@ -54,9 +54,9 @@ vdev_read(vdev_t *vdev, void *priv, off_t off, void *buf, size_t bytes) devinfo->dev->Media->MediaId, lba, bytes, buf); if (status != EFI_SUCCESS) { 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)); + " status: %lu\n", devinfo->dev, + devinfo->dev->Media->MediaId, (intmax_t)lba, bytes, + EFI_ERROR_CODE(status)); return (-1); } |
