summaryrefslogtreecommitdiff
path: root/src/kernel/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/printf.c')
-rw-r--r--src/kernel/printf.c6
1 files changed, 6 insertions, 0 deletions
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 <serial.h>
//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
}
}