u-boot-brain/examples/api
Heinrich Schuchardt 256060e425 vsprintf.c: add EFI device path printing
For debugging efi_loader we need the capability to print EFI
device paths. With this patch we can write:

    debug("device path: %pD", dp);

A possible output would be

    device path: /MemoryMapped(0x0,0x3ff93a82,0x3ff93a82)

This enhancement is not available when building without EFI support
and neither in the SPL nor in the API example.

A test is provided. It can be executed in the sandbox with command
ut_print.

The development for EFI support in the sandbox is currently in
branch u-boot-dm/efi-working. The branch currently lacks
commit 6ea8b580f0 ("efi_loader: correct DeviceNodeToText
for media types"). Ater rebasing the aforementioned branch on
U-Boot v2018.01 the test is executed successfully.

Without EFI support in the sandbox the test is simply skipped.

Suggested-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
2018-01-22 23:09:12 +01:00
..
.gitignore Move api_examples to examples/api 2009-07-21 09:23:36 +02:00
crt0.S Fix FreeBSD loader API so that it works on both 32-bit and 64-bit targets. 2016-05-21 01:25:50 +02:00
demo.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
glue.c examples: add fallback memcpy 2017-09-12 17:58:01 -04:00
glue.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
libgenwrap.c lib/tiny-printf.c: Add tiny printf function for space limited environments 2015-11-23 10:56:07 -05:00
Makefile vsprintf.c: add EFI device path printing 2018-01-22 23:09:12 +01:00