summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi
diff options
context:
space:
mode:
authorsmh <smh@FreeBSD.org>2016-02-06 22:01:25 +0000
committersmh <smh@FreeBSD.org>2016-02-06 22:01:25 +0000
commit993c2695aa5e66d4379e155446baeeb4d6c9c8c0 (patch)
treed8dc32d4a916a44023ac761bdb905f8d88f5f8f0 /sys/boot/efi
parent5b12d896ba622682f675117c93a7da3a68c78190 (diff)
downloadFreeBSD-src-993c2695aa5e66d4379e155446baeeb4d6c9c8c0.zip
FreeBSD-src-993c2695aa5e66d4379e155446baeeb4d6c9c8c0.tar.gz
Fix EFI platform build failures
With warnings now enabled some plaforms where failing due to warnings. * Fix st_size printed as a size_t when its actually an off_t. * Fix pointer conversion in load_elf for some 32bit platforms due to 64bit off in ef. MFC after: 2 days X-MFC-With: Sponsored by: Multiplay
Diffstat (limited to 'sys/boot/efi')
-rw-r--r--sys/boot/efi/boot1/zfs_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/efi/boot1/zfs_module.c b/sys/boot/efi/boot1/zfs_module.c
index 4e2c5c4..925f0b2 100644
--- a/sys/boot/efi/boot1/zfs_module.c
+++ b/sys/boot/efi/boot1/zfs_module.c
@@ -135,7 +135,7 @@ load(const char *filepath, dev_info_t *devinfo, void **bufp, size_t *bufsize)
if ((status = bs->AllocatePool(EfiLoaderData, (UINTN)st.st_size, &buf))
!= EFI_SUCCESS) {
- printf("Failed to allocate load buffer %zu for pool '%s' for '%s' "
+ printf("Failed to allocate load buffer %zd for pool '%s' for '%s' "
"(%lu)\n", st.st_size, spa->spa_name, filepath, EFI_ERROR_CODE(status));
return (EFI_INVALID_PARAMETER);
}
OpenPOWER on IntegriCloud