diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-04-04 22:45:03 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-06-28 03:09:51 +0100 |
commit | 7750ee45a62c7834f170f817232e432b8d2a14d3 (patch) | |
tree | 0d796cbb17c4ff3227daa2a3cbc7fd583fdffb53 /include/os.h | |
parent | ebcaafcded40da8ae6cb4234c2ba9901c7bee644 (diff) | |
download | u-boot-7750ee45a62c7834f170f817232e432b8d2a14d3.tar.gz u-boot-7750ee45a62c7834f170f817232e432b8d2a14d3.tar.bz2 u-boot-7750ee45a62c7834f170f817232e432b8d2a14d3.zip |
sandbox: add function os_printf()
Before setting up the devices U-Boot's printf() function cannot be used
for console output. Provide function os_printf() to print to stderr.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'include/os.h')
-rw-r--r-- | include/os.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/os.h b/include/os.h index 10e198cf50..148178787b 100644 --- a/include/os.h +++ b/include/os.h @@ -17,6 +17,13 @@ struct rtc_time; struct sandbox_state; /** + * os_printf() - print directly to OS console + * + * @format: format string + */ +int os_printf(const char *format, ...); + +/** * Access to the OS read() system call * * @fd: File descriptor as returned by os_open() |