Преглед изворни кода

[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>
tags/v1.20.1
Michael Brown пре 9 година
родитељ
комит
16d99cc8ef

+ 2
- 0
src/drivers/net/efi/snpnet.c Прегледај датотеку

@@ -407,6 +407,8 @@ int snpnet_start ( struct efi_device *efidev ) {
407 407
 		rc = -EEFI ( efirc );
408 408
 		DBGC ( device, "SNP %p %s cannot open SNP protocol: %s\n",
409 409
 		       device, efi_handle_name ( device ), strerror ( rc ) );
410
+		DBGC_EFI_OPENERS ( device, device,
411
+				   &efi_simple_network_protocol_guid );
410 412
 		goto err_open_protocol;
411 413
 	}
412 414
 

+ 4
- 0
src/interface/efi/efi_driver.c Прегледај датотеку

@@ -137,6 +137,8 @@ int efidev_child_add ( struct efi_device *efidev, EFI_HANDLE device ) {
137 137
 		       efidev->device, efi_handle_name ( efidev->device ) );
138 138
 		DBGC ( efidev->device, " %p %s: %s\n", device,
139 139
 		       efi_handle_name ( device ), strerror ( rc ) );
140
+		DBGC_EFI_OPENERS ( efidev->device, efidev->device,
141
+				   &efi_device_path_protocol_guid );
140 142
 		return rc;
141 143
 	}
142 144
 
@@ -264,6 +266,8 @@ efi_driver_start ( EFI_DRIVER_BINDING_PROTOCOL *driver __unused,
264 266
 		DBGC ( device, "EFIDRV %p %s could not open device path: %s\n",
265 267
 		       device, efi_handle_name ( device ),
266 268
 		       strerror ( rc ) );
269
+		DBGC_EFI_OPENERS ( device, device,
270
+				   &efi_device_path_protocol_guid );
267 271
 		goto err_no_device_path;
268 272
 	}
269 273
 	efidev->path = devpath.devpath;

+ 1
- 0
src/interface/efi/efi_file.c Прегледај датотеку

@@ -631,6 +631,7 @@ int efi_file_install ( EFI_HANDLE handle ) {
631 631
 		rc = -EEFI ( efirc );
632 632
 		DBGC ( handle, "Could not open disk I/O protocol: %s\n",
633 633
 		       strerror ( rc ) );
634
+		DBGC_EFI_OPENERS ( handle, handle, &efi_disk_io_protocol_guid );
634 635
 		goto err_open;
635 636
 	}
636 637
 	assert ( diskio.diskio == &efi_disk_io_protocol );

+ 1
- 0
src/interface/efi/efi_pci.c Прегледај датотеку

@@ -292,6 +292,7 @@ static int efipci_start ( struct efi_device *efidev ) {
292 292
 				  pci ) ) != 0 ) {
293 293
 		DBGC ( device, "EFIPCI %p %s could not open PCI device: %s\n",
294 294
 		       device, efi_handle_name ( device ), strerror ( rc ) );
295
+		DBGC_EFI_OPENERS ( device, device, &efi_pci_io_protocol_guid );
295 296
 		goto err_open;
296 297
 	}
297 298
 

Loading…
Откажи
Сачувај