diff options
author | Tom Rini <trini@konsulko.com> | 2025-05-02 13:57:26 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-05-02 13:57:26 -0600 |
commit | 6cc812f8cc55c132458c7da5b9fb7666315cbe8c (patch) | |
tree | 297fb9e724f252a3fdb46ee28348e66ff7c05a96 /include/console.h | |
parent | 4ca87fd18c1b718be423755939a6e5b1688869f5 (diff) | |
parent | 7703cfe025cbbb2277498483304b4db958521d9e (diff) |
Merge patch series "video: Enhancements related to truetype and console"
Simon Glass <sjg@chromium.org> says:
This series includes some precursor patches needed for forthcoming expo
enhancements.
- truetype support for multiple lines
- make white-on-black a runtime option
- support drawing a rectangle
Diffstat (limited to 'include/console.h')
-rw-r--r-- | include/console.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h index 57fdb0834c1..8d0d7bb8a4c 100644 --- a/include/console.h +++ b/include/console.h @@ -170,6 +170,21 @@ int console_announce_r(void); void console_puts_select_stderr(bool serial_only, const char *s); /** + * console_printf_select_stderr() - Output a formatted string to selected devs + * + * This writes to stderr only. It is useful for outputting errors. Note that it + * uses its own buffer, separate from the print buffer, to allow printing + * messages within console/stdio code + * + * @serial_only: true to output only to serial, false to output to everything + * else + * @fmt: Printf format string, followed by format arguments + * Return: number of characters written + */ +int console_printf_select_stderr(bool serial_only, const char *fmt, ...) + __attribute__ ((format (__printf__, 2, 3))); + +/** * console_clear() - Clear the console * * Uses an ANSI sequence to clear the display, failing back to clearing the |