aboutsummaryrefslogtreecommitdiff
path: root/src/image
diff options
context:
space:
mode:
Diffstat (limited to 'src/image')
-rw-r--r--src/image/efi_image.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/image/efi_image.c b/src/image/efi_image.c
index 5992b62..ae95deb 100644
--- a/src/image/efi_image.c
+++ b/src/image/efi_image.c
@@ -43,16 +43,16 @@ static int efi_image_exec ( struct image *image ) {
user_to_virt ( image->data, 0 ),
image->len, &handle ) ) != 0 ) {
/* Not an EFI image */
- DBGC ( image, "EFIIMAGE %p could not load: %x\n",
- image, efirc );
+ DBGC ( image, "EFIIMAGE %p could not load: %s\n",
+ image, efi_strerror ( efirc ) );
return -ENOEXEC;
}
/* Start the image */
if ( ( efirc = bs->StartImage ( handle, &exit_data_size,
&exit_data ) ) != 0 ) {
- DBGC ( image, "EFIIMAGE %p returned with status %x\n",
- image, efirc );
+ DBGC ( image, "EFIIMAGE %p returned with status %s\n",
+ image, efi_strerror ( efirc ) );
goto done;
}
@@ -81,8 +81,8 @@ static int efi_image_load ( struct image *image ) {
user_to_virt ( image->data, 0 ),
image->len, &handle ) ) != 0 ) {
/* Not an EFI image */
- DBGC ( image, "EFIIMAGE %p could not load: %x\n",
- image, efirc );
+ DBGC ( image, "EFIIMAGE %p could not load: %s\n",
+ image, efi_strerror ( efirc ) );
return -ENOEXEC;
}