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

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Jul 13 20:06:20 UTC 2017


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 at gmx.de>
---
 lib/efi_loader/efi_device_path_to_text.c | 3 +++
 1 file changed, 3 insertions(+)

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;
-- 
2.11.0



More information about the U-Boot mailing list