All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] sandbox: error output
@ 2022-04-04 20:45 Heinrich Schuchardt
  2022-04-04 20:45 ` [PATCH 1/2] sandbox: add function os_printf() Heinrich Schuchardt
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Heinrich Schuchardt @ 2022-04-04 20:45 UTC (permalink / raw)
  To: Simon Glass; +Cc: u-boot, Heinrich Schuchardt

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-28 13:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 20:45 [PATCH 0/2] sandbox: error output Heinrich Schuchardt
2022-04-04 20:45 ` [PATCH 1/2] sandbox: add function os_printf() Heinrich Schuchardt
2022-04-04 20:45 ` [PATCH 2/2] sandbox: show error if the device-tree cannot be loaded Heinrich Schuchardt
2022-06-28 13:38 ` Simon Glass
2022-06-28 13:38 ` [PATCH 1/2] sandbox: add function os_printf() Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.