[PATCH 0/2] sandbox: error output

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Mon Apr 4 22:45:02 CEST 2022


U-Boot's printf() cannot write to the console before the serial console
driver is set up. We need a function writing to the OS console.

Provide a new function os_printf() to print to the OS console.

Use the funciton to implement the error messages related to loading the
device-tree.

For sure there are more places where we need os_printf() instead of
printf() for error messages.

We also could use it to provide a debug console for the sandbox.

Heinrich Schuchardt (2):
  sandbox: add function os_printf()
  sandbox: show error if the device-tree cannot be loaded

 arch/sandbox/cpu/cpu.c |  8 ++++----
 arch/sandbox/cpu/os.c  | 13 +++++++++++++
 include/os.h           |  7 +++++++
 3 files changed, 24 insertions(+), 4 deletions(-)

-- 
2.34.1



More information about the U-Boot mailing list