]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Report exact failure when unable to open the device path
authorMichael Brown <mcb30@ipxe.org>
Wed, 30 Jul 2014 16:53:51 +0000 (17:53 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 30 Jul 2014 16:53:51 +0000 (17:53 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_driver.c

index cca1ddd4fe121e030760470bbb0f7b2b8a9bf9a0..6ebfee5b26ab2ecfe1eb1fa55c57896417401aed 100644 (file)
@@ -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;