diff options
author | Anton Kling <anton@kling.gg> | 2024-10-16 20:41:17 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-10-16 20:41:17 +0200 |
commit | 4e817cecfa7328af34fb96db7f052352737cd07e (patch) | |
tree | e2470a6e3f9683ed83a1e4067dd0ab79a9b67be5 /kernel/libc | |
parent | 6d4f0e917f638c0ab53d847037938d83497f53ea (diff) |
kernel: Add RSOD(red screen of death)
This is not useful since 99% of the time I will have access to the
serial output. But it does look cool.
Diffstat (limited to 'kernel/libc')
-rw-r--r-- | kernel/libc/stdio/print.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/libc/stdio/print.c b/kernel/libc/stdio/print.c index eedf026..3df6b5f 100644 --- a/kernel/libc/stdio/print.c +++ b/kernel/libc/stdio/print.c @@ -1,17 +1,17 @@ #include <assert.h> -#include <drivers/serial.h> +#include <log.h> #include <stdio.h> #include <string.h> #define TAB_SIZE 8 inline void putc(const char c) { - write_serial(c); + log_char(c); } void put_string(const char *s, int l) { for (; l > 0; l--, s++) { - write_serial(*s); + log_char(*s); } } |