diff options
author | Patrick Delaunay | 2020-11-27 11:20:55 +0100 |
---|---|---|
committer | Tom Rini | 2021-01-15 14:36:11 -0500 |
commit | a4918b231065224092a34bf8cca5af704bb8373b (patch) | |
tree | 960b4d917e2a60cbfa4b2fdaaf1bf29971622171 /arch/sandbox | |
parent | dd500134a4201f0edd8a8f6b9618ed7094b8d29e (diff) |
test: add test for dropped trace before log_init
Add test for dropped trace before log_init, displayed by debug uart.
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/cpu/start.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sandbox/cpu/start.c b/arch/sandbox/cpu/start.c index 8322ed7a1fe..2d18d9debcd 100644 --- a/arch/sandbox/cpu/start.c +++ b/arch/sandbox/cpu/start.c @@ -9,6 +9,7 @@ #include <efi_loader.h> #include <errno.h> #include <init.h> +#include <log.h> #include <os.h> #include <cli.h> #include <sort.h> @@ -486,6 +487,10 @@ int main(int argc, char *argv[]) */ gd->reloc_off = (ulong)gd->arch.text_base; + /* sandbox test: log functions called before log_init in board_init_f */ + log_info("sandbox: starting...\n"); + log_debug("debug: %s\n", __func__); + /* Do pre- and post-relocation init */ board_init_f(0); |