summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2015-04-09 10:15:47 +0000
committerandrew <andrew@FreeBSD.org>2015-04-09 10:15:47 +0000
commit353f0f11ddb70e80c453f80e5d889cf27fc28d04 (patch)
tree957387170ccc20ccd8cc1b307e735ce3178ad930 /sys/boot
parent9045097370db4c45de612fb426a8979054c9fa10 (diff)
downloadFreeBSD-src-353f0f11ddb70e80c453f80e5d889cf27fc28d04.zip
FreeBSD-src-353f0f11ddb70e80c453f80e5d889cf27fc28d04.tar.gz
Print error values with hex to make it easier to find the EFI error type.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/efi/boot1/boot1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/boot/efi/boot1/boot1.c b/sys/boot/efi/boot1/boot1.c
index 88a139f..eff191b 100644
--- a/sys/boot/efi/boot1/boot1.c
+++ b/sys/boot/efi/boot1/boot1.c
@@ -330,18 +330,18 @@ load(const char *fname)
status = systab->BootServices->LoadImage(TRUE, image, bootdevpath,
buffer, bufsize, &loaderhandle);
if (EFI_ERROR(status))
- printf("LoadImage failed with error %d\n", status);
+ printf("LoadImage failed with error %lx\n", status);
status = systab->BootServices->HandleProtocol(loaderhandle,
&LoadedImageGUID, (VOID**)&loaded_image);
if (EFI_ERROR(status))
- printf("HandleProtocol failed with error %d\n", status);
+ printf("HandleProtocol failed with error %lx\n", status);
loaded_image->DeviceHandle = bootdevhandle;
status = systab->BootServices->StartImage(loaderhandle, NULL, NULL);
if (EFI_ERROR(status))
- printf("StartImage failed with error %d\n", status);
+ printf("StartImage failed with error %lx\n", status);
}
static void
OpenPOWER on IntegriCloud