summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/efi/snpnet.c
diff options
context:
space:
mode:
authorMichael Brown2014-07-31 13:28:26 +0200
committerMichael Brown2014-07-31 13:50:14 +0200
commit16d99cc8ef3b816072e78c2d640e193d0359163f (patch)
treed67c4ea6b805344e877259d15bb922f5d3c2ff85 /src/drivers/net/efi/snpnet.c
parent[efi] Avoid unnecessarily passing pointers to EFI_HANDLEs (diff)
downloadipxe-16d99cc8ef3b816072e78c2d640e193d0359163f.tar.gz
ipxe-16d99cc8ef3b816072e78c2d640e193d0359163f.tar.xz
ipxe-16d99cc8ef3b816072e78c2d640e193d0359163f.zip
[efi] Dump existing openers when we are unable to open a protocol
Dump the existing openers of a protocol whenever we are unable to open a protocol using attributes of BY_DEVICE, EXCLUSIVE, or BY_CHILD_CONTROLLER. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/efi/snpnet.c')
-rw-r--r--src/drivers/net/efi/snpnet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/net/efi/snpnet.c b/src/drivers/net/efi/snpnet.c
index acba3ed3..766eb42d 100644
--- a/src/drivers/net/efi/snpnet.c
+++ b/src/drivers/net/efi/snpnet.c
@@ -407,6 +407,8 @@ int snpnet_start ( struct efi_device *efidev ) {
rc = -EEFI ( efirc );
DBGC ( device, "SNP %p %s cannot open SNP protocol: %s\n",
device, efi_handle_name ( device ), strerror ( rc ) );
+ DBGC_EFI_OPENERS ( device, device,
+ &efi_simple_network_protocol_guid );
goto err_open_protocol;
}