[U-Boot] [PATCH 08/16] efi_loader: debug output installed device path

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Dec 17 15:43:34 UTC 2017


When a device path protocol is installed write the device
path to the console in debug mode.

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 lib/efi_loader/efi_boottime.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index 44c9da0a7c..b5d6808bf7 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -876,6 +876,13 @@ efi_status_t efi_add_protocol(const void *handle, const efi_guid_t *protocol,
 	handler->protocol_interface = protocol_interface;
 	INIT_LIST_HEAD(&handler->open_infos);
 	list_add_tail(&handler->link, &efiobj->protocols);
+#if _DEBUG == 1
+	if (!guidcmp(&efi_guid_device_path, protocol)) {
+		debug("%sEFI installed device path: %ls\n", __efi_nesting(),
+		      efi_dp_str((struct efi_device_path *)
+				 protocol_interface));
+	}
+#endif
 	return EFI_SUCCESS;
 }
 
-- 
2.14.2



More information about the U-Boot mailing list