Browse Source

[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 10 years ago
parent
commit
410f50c2ee
2 changed files with 6 additions and 3 deletions
  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 View File

61
 	{ EFI_DISK_IO_PROTOCOL_GUID,		"DiskIo" },
61
 	{ EFI_DISK_IO_PROTOCOL_GUID,		"DiskIo" },
62
 	{ EFI_DEVICE_PATH_PROTOCOL_GUID,	"DevicePath" },
62
 	{ EFI_DEVICE_PATH_PROTOCOL_GUID,	"DevicePath" },
63
 	{ EFI_LOADED_IMAGE_PROTOCOL_GUID,	"LoadedImage" },
63
 	{ EFI_LOADED_IMAGE_PROTOCOL_GUID,	"LoadedImage" },
64
+	{ EFI_LOADED_IMAGE_DEVICE_PATH_PROTOCOL_GUID, "LoadedImageDevicePath" },
64
 	{ EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_GUID,	"SimpleFileSystem" },
65
 	{ EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_GUID,	"SimpleFileSystem" },
65
 	{ EFI_SIMPLE_NETWORK_PROTOCOL_GUID,	"SimpleNetwork" },
66
 	{ EFI_SIMPLE_NETWORK_PROTOCOL_GUID,	"SimpleNetwork" },
66
 };
67
 };

+ 5
- 3
src/interface/efi/efi_wrap.c View File

227
 
227
 
228
 	/* Provide system table wrapper to image */
228
 	/* Provide system table wrapper to image */
229
 	loaded->SystemTable = &efi_systab_wrapper;
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
 	DBGC ( colour, "Parent image %p %s\n", loaded->ParentHandle,
233
 	DBGC ( colour, "Parent image %p %s\n", loaded->ParentHandle,
233
 	       efi_handle_devpath_text ( loaded->ParentHandle ) );
234
 	       efi_handle_devpath_text ( loaded->ParentHandle ) );
234
 	DBGC ( colour, "Device %p %s ", loaded->DeviceHandle,
235
 	DBGC ( colour, "Device %p %s ", loaded->DeviceHandle,
235
 	       efi_handle_devpath_text ( loaded->DeviceHandle ) );
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…
Cancel
Save