summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2016-03-12 06:50:16 +0000
committerandrew <andrew@FreeBSD.org>2016-03-12 06:50:16 +0000
commit01c1595386376acfbd033808b962cb106a45f73b (patch)
treeca9a7d08d389b04d06e182372250cfe784e31f60 /sys/boot/efi
parent96b33bc25da77281b4b27bb22bbdf64cc9a1d9e2 (diff)
downloadFreeBSD-src-01c1595386376acfbd033808b962cb106a45f73b.zip
FreeBSD-src-01c1595386376acfbd033808b962cb106a45f73b.tar.gz
Print the correct size of loader.efi when failing to load it into memory.
Obtained from: AsiaBSDCon Sponsored by: ABT Systems Ltd
Diffstat (limited to 'sys/boot/efi')
-rw-r--r--sys/boot/efi/boot1/boot1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/efi/boot1/boot1.c b/sys/boot/efi/boot1/boot1.c
index 1161b0a..1b84d41 100644
--- a/sys/boot/efi/boot1/boot1.c
+++ b/sys/boot/efi/boot1/boot1.c
@@ -405,7 +405,7 @@ try_boot()
if ((status = bs->LoadImage(TRUE, image, devpath_last(dev->devpath),
loaderbuf, loadersize, &loaderhandle)) != EFI_SUCCESS) {
printf("Failed to load image provided by %s, size: %zu, (%lu)\n",
- mod->name, bufsize, EFI_ERROR_CODE(status));
+ mod->name, loadersize, EFI_ERROR_CODE(status));
goto errout;
}
OpenPOWER on IntegriCloud