summaryrefslogtreecommitdiffstats
path: root/src/interface/efi/efi_driver.c
diff options
context:
space:
mode:
authorMichael Brown2014-07-30 18:53:51 +0200
committerMichael Brown2014-07-30 18:53:51 +0200
commit057eb9e496b4d6e04864df48f3855f014da53aeb (patch)
treeb2369743351574a29761194226bbc006fec5afc4 /src/interface/efi/efi_driver.c
parent[efi] Fix incorrect debug message level when device has no device path (diff)
downloadipxe-057eb9e496b4d6e04864df48f3855f014da53aeb.tar.gz
ipxe-057eb9e496b4d6e04864df48f3855f014da53aeb.tar.xz
ipxe-057eb9e496b4d6e04864df48f3855f014da53aeb.zip
[efi] Report exact failure when unable to open the device path
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/efi/efi_driver.c')
-rw-r--r--src/interface/efi/efi_driver.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/interface/efi/efi_driver.c b/src/interface/efi/efi_driver.c
index cca1ddd4..6ebfee5b 100644
--- a/src/interface/efi/efi_driver.c
+++ b/src/interface/efi/efi_driver.c
@@ -261,8 +261,10 @@ efi_driver_start ( EFI_DRIVER_BINDING_PROTOCOL *driver __unused,
&devpath.interface,
efi_image_handle, device,
EFI_OPEN_PROTOCOL_BY_DRIVER ) ) != 0){
- DBGC ( device, "EFIDRV %p %s has no device path\n",
- device, efi_handle_devpath_text ( device ) );
+ rc = -EEFI ( efirc );
+ DBGC ( device, "EFIDRV %p %s could not open device path: %s\n",
+ device, efi_handle_devpath_text ( device ),
+ strerror ( rc ) );
goto err_no_device_path;
}
efidev->path = devpath.devpath;