diff mbox series

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

Message ID 20171217154342.15469-9-xypron.glpk@gmx.de
State Superseded, archived
Delegated to: Alexander Graf
Headers show
Series efi_loader: implement driver management | expand

Commit Message

Heinrich Schuchardt Dec. 17, 2017, 3:43 p.m. UTC
When a device path protocol is installed write the device
path to the console in debug mode.

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

Comments

Simon Glass Jan. 8, 2018, 3:35 a.m. UTC | #1
On 17 December 2017 at 08:43, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
> When a device path protocol is installed write the device
> path to the console in debug mode.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  lib/efi_loader/efi_boottime.c | 7 +++++++
>  1 file changed, 7 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox series

Patch

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