summaryrefslogtreecommitdiffstats
path: root/src/interface/efi/efi_driver.c
diff options
context:
space:
mode:
authorMichael Brown2014-07-31 13:45:18 +0200
committerMichael Brown2014-07-31 13:50:14 +0200
commit7023923db2eef64fcc3ec38fbe1054a47db1036b (patch)
tree6460ee738f045d0a9f3c605ebeb50aee80c69fa4 /src/interface/efi/efi_driver.c
parent[efi] Dump existing openers when we are unable to open a protocol (diff)
downloadipxe-7023923db2eef64fcc3ec38fbe1054a47db1036b.tar.gz
ipxe-7023923db2eef64fcc3ec38fbe1054a47db1036b.tar.xz
ipxe-7023923db2eef64fcc3ec38fbe1054a47db1036b.zip
[efi] Dump handle information around connect/disconnect attempts
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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/interface/efi/efi_driver.c b/src/interface/efi/efi_driver.c
index 715ec38b..1f9c7491 100644
--- a/src/interface/efi/efi_driver.c
+++ b/src/interface/efi/efi_driver.c
@@ -490,9 +490,15 @@ static int efi_driver_connect ( EFI_HANDLE device ) {
}
/* Disconnect any existing drivers */
+ DBGC2 ( device, "EFIDRV %p %s before disconnecting:\n",
+ device, efi_handle_name ( device ) );
+ DBGC2_EFI_PROTOCOLS ( device, device );
DBGC ( device, "EFIDRV %p %s disconnecting existing drivers\n",
device, efi_handle_name ( device ) );
bs->DisconnectController ( device, NULL, NULL );
+ DBGC2 ( device, "EFIDRV %p %s after disconnecting:\n",
+ device, efi_handle_name ( device ) );
+ DBGC2_EFI_PROTOCOLS ( device, device );
/* Connect our driver */
DBGC ( device, "EFIDRV %p %s connecting new drivers\n",
@@ -505,6 +511,9 @@ static int efi_driver_connect ( EFI_HANDLE device ) {
strerror ( rc ) );
return rc;
}
+ DBGC2 ( device, "EFIDRV %p %s after connecting:\n",
+ device, efi_handle_name ( device ) );
+ DBGC2_EFI_PROTOCOLS ( device, device );
return 0;
}