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 |
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 --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; }
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(+)