From 9b22a6965579ea1867aea291d910c96f386b518b Mon Sep 17 00:00:00 2001 From: Brett Weiland Date: Tue, 24 Aug 2021 14:09:29 -0500 Subject: major backup 8.24.21 --- src/kernel/printf.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/kernel/printf.c') diff --git a/src/kernel/printf.c b/src/kernel/printf.c index 14c897d..8267755 100644 --- a/src/kernel/printf.c +++ b/src/kernel/printf.c @@ -39,10 +39,12 @@ #include //and my options +/** #define PRINTF_DISABLE_SUPPORT_FLOAT #define PRINTF_DISABLE_SUPPORT_EXPONENTIAL #define PRINTF_DISABLE_SUPPORT_LONG_LONG #define PRINTF_DISABLE_SUPPORT_PTRDIFF_T +**/ // define this globally (e.g. gcc -DPRINTF_INCLUDE_CONFIG_H ...) to include the @@ -159,7 +161,11 @@ static inline void _out_char(char character, void* buffer, size_t idx, size_t ma { (void)buffer; (void)idx; (void)maxlen; if (character) { +#ifdef SCREEN_OUTPUT + _putchar_screen(character); +#else _putchar_serial(COM1, character); // later we should figure out a way to not specifify exclusively com1 +#endif } } -- cgit v1.2.3