diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-01-11 08:16:01 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-01-22 23:09:13 +0100 |
commit | d550414434f4250e80847382fac92f7e3891d887 (patch) | |
tree | 6146702e0e66789dac84df3300ebb8ddd2a45364 /lib/efi_loader | |
parent | e3fbbc36f2d94f15d4d9bcd52d59d82d849a8e21 (diff) | |
download | u-boot-d550414434f4250e80847382fac92f7e3891d887.tar.gz |
efi_loader: debug output installed device path
When a device path protocol is installed write the device
path to the console in debug mode.
For printing the new macro EFI_PRINT is used, which can be reused
for future diagnostic output.
Remove unused EFI_PRINT_GUID macro
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib/efi_loader')
-rw-r--r-- | lib/efi_loader/efi_boottime.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 7a6c282f81..673c66a4aa 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -876,6 +876,8 @@ 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 (!guidcmp(&efi_guid_device_path, protocol)) + EFI_PRINT("installed device path '%pD'\n", protocol_interface); return EFI_SUCCESS; } |