diff mbox

[U-Boot,3/4] efi_loader: debug info in efi_convert_device_path_to_text

Message ID 20170713200621.1453-4-xypron.glpk@gmx.de
State Superseded
Headers show

Commit Message

Heinrich Schuchardt July 13, 2017, 8:06 p.m. UTC
The debug information provided by efi_convert_device_path_to_text
is insufficient. The type and the subtype are needed to find
out why the function did not support a conversion.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 lib/efi_loader/efi_device_path_to_text.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/lib/efi_loader/efi_device_path_to_text.c b/lib/efi_loader/efi_device_path_to_text.c
index c6ac5e52f3..746b34a377 100644
--- a/lib/efi_loader/efi_device_path_to_text.c
+++ b/lib/efi_loader/efi_device_path_to_text.c
@@ -32,6 +32,9 @@  uint16_t *efi_convert_device_path_to_text(
 {
 	EFI_ENTRY("%p, %d, %d", device_path, display_only, allow_shortcuts);
 
+	debug("EFI: type %d, subtype %d\n",
+	      device_path->type, device_path->sub_type);
+
 	unsigned long buffer_size;
 	efi_status_t r;
 	uint16_t *buffer = NULL;