Selaa lähdekoodia

[efi] Show more diagnostic information when building with DEBUG=efi_wrap

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 vuotta sitten
vanhempi
commit
410f50c2ee
2 muutettua tiedostoa jossa 6 lisäystä ja 3 poistoa
  1. 1
    0
      src/interface/efi/efi_debug.c
  2. 5
    3
      src/interface/efi/efi_wrap.c

+ 1
- 0
src/interface/efi/efi_debug.c Näytä tiedosto

@@ -61,6 +61,7 @@ static struct efi_well_known_guid efi_well_known_guids[] = {
61 61
 	{ EFI_DISK_IO_PROTOCOL_GUID,		"DiskIo" },
62 62
 	{ EFI_DEVICE_PATH_PROTOCOL_GUID,	"DevicePath" },
63 63
 	{ EFI_LOADED_IMAGE_PROTOCOL_GUID,	"LoadedImage" },
64
+	{ EFI_LOADED_IMAGE_DEVICE_PATH_PROTOCOL_GUID, "LoadedImageDevicePath" },
64 65
 	{ EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_GUID,	"SimpleFileSystem" },
65 66
 	{ EFI_SIMPLE_NETWORK_PROTOCOL_GUID,	"SimpleNetwork" },
66 67
 };

+ 5
- 3
src/interface/efi/efi_wrap.c Näytä tiedosto

@@ -227,11 +227,13 @@ void efi_wrap ( EFI_HANDLE handle, EFI_LOADED_IMAGE_PROTOCOL *loaded ) {
227 227
 
228 228
 	/* Provide system table wrapper to image */
229 229
 	loaded->SystemTable = &efi_systab_wrapper;
230
-	DBGC ( colour, "Wrapped image %p %s at base %p\n", handle,
231
-	       efi_handle_devpath_text ( handle ), loaded->ImageBase );
230
+	DBGC ( colour, "Wrapped image %p %s at base %p has protocols:\n",
231
+	       handle, efi_handle_devpath_text ( handle ), loaded->ImageBase );
232
+	DBGC_EFI_PROTOCOLS ( colour, handle );
232 233
 	DBGC ( colour, "Parent image %p %s\n", loaded->ParentHandle,
233 234
 	       efi_handle_devpath_text ( loaded->ParentHandle ) );
234 235
 	DBGC ( colour, "Device %p %s ", loaded->DeviceHandle,
235 236
 	       efi_handle_devpath_text ( loaded->DeviceHandle ) );
236
-	DBGC ( colour, "file %s\n", efi_devpath_text ( loaded->FilePath ) );
237
+	DBGC ( colour, "file %p %s\n", loaded->FilePath,
238
+	       efi_devpath_text ( loaded->FilePath ) );
237 239
 }

Loading…
Peruuta
Tallenna