Browse Source

[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 10 years ago
parent
commit
16d99cc8ef

+ 2
- 0
src/drivers/net/efi/snpnet.c View File

407
 		rc = -EEFI ( efirc );
407
 		rc = -EEFI ( efirc );
408
 		DBGC ( device, "SNP %p %s cannot open SNP protocol: %s\n",
408
 		DBGC ( device, "SNP %p %s cannot open SNP protocol: %s\n",
409
 		       device, efi_handle_name ( device ), strerror ( rc ) );
409
 		       device, efi_handle_name ( device ), strerror ( rc ) );
410
+		DBGC_EFI_OPENERS ( device, device,
411
+				   &efi_simple_network_protocol_guid );
410
 		goto err_open_protocol;
412
 		goto err_open_protocol;
411
 	}
413
 	}
412
 
414
 

+ 4
- 0
src/interface/efi/efi_driver.c View File

137
 		       efidev->device, efi_handle_name ( efidev->device ) );
137
 		       efidev->device, efi_handle_name ( efidev->device ) );
138
 		DBGC ( efidev->device, " %p %s: %s\n", device,
138
 		DBGC ( efidev->device, " %p %s: %s\n", device,
139
 		       efi_handle_name ( device ), strerror ( rc ) );
139
 		       efi_handle_name ( device ), strerror ( rc ) );
140
+		DBGC_EFI_OPENERS ( efidev->device, efidev->device,
141
+				   &efi_device_path_protocol_guid );
140
 		return rc;
142
 		return rc;
141
 	}
143
 	}
142
 
144
 
264
 		DBGC ( device, "EFIDRV %p %s could not open device path: %s\n",
266
 		DBGC ( device, "EFIDRV %p %s could not open device path: %s\n",
265
 		       device, efi_handle_name ( device ),
267
 		       device, efi_handle_name ( device ),
266
 		       strerror ( rc ) );
268
 		       strerror ( rc ) );
269
+		DBGC_EFI_OPENERS ( device, device,
270
+				   &efi_device_path_protocol_guid );
267
 		goto err_no_device_path;
271
 		goto err_no_device_path;
268
 	}
272
 	}
269
 	efidev->path = devpath.devpath;
273
 	efidev->path = devpath.devpath;

+ 1
- 0
src/interface/efi/efi_file.c View File

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

+ 1
- 0
src/interface/efi/efi_pci.c View File

292
 				  pci ) ) != 0 ) {
292
 				  pci ) ) != 0 ) {
293
 		DBGC ( device, "EFIPCI %p %s could not open PCI device: %s\n",
293
 		DBGC ( device, "EFIPCI %p %s could not open PCI device: %s\n",
294
 		       device, efi_handle_name ( device ), strerror ( rc ) );
294
 		       device, efi_handle_name ( device ), strerror ( rc ) );
295
+		DBGC_EFI_OPENERS ( device, device, &efi_pci_io_protocol_guid );
295
 		goto err_open;
296
 		goto err_open;
296
 	}
297
 	}
297
 
298
 

Loading…
Cancel
Save