summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi/loader/copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/efi/loader/copy.c')
-rw-r--r--sys/boot/efi/loader/copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/efi/loader/copy.c b/sys/boot/efi/loader/copy.c
index a7d6bf1..363d95d 100644
--- a/sys/boot/efi/loader/copy.c
+++ b/sys/boot/efi/loader/copy.c
@@ -56,7 +56,7 @@ efi_copy_init(void)
STAGE_PAGES, &staging);
if (EFI_ERROR(status)) {
printf("failed to allocate staging area: %lu\n",
- (unsigned long)(status & EFI_ERROR_MASK));
+ EFI_ERROR_CODE(status));
return (status);
}
staging_end = staging + STAGE_PAGES * EFI_PAGE_SIZE;
OpenPOWER on IntegriCloud