From ac2ba8bc562dfc36042793711eb58021c4d3f637 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sat, 10 Dec 2022 00:30:00 +0200 Subject: [PATCH] LibC: Remove actual printing from putc() since we were panicing anyway --- libc/stdio/putchar.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libc/stdio/putchar.cpp b/libc/stdio/putchar.cpp index dcdb42d9..e1e82c5d 100644 --- a/libc/stdio/putchar.cpp +++ b/libc/stdio/putchar.cpp @@ -1,18 +1,15 @@ #include #if defined(__is_libk) -#include -#include + #include #else -#include + #include #endif int putchar(int c) { #if defined(__is_libk) Kernel::panic("Please use kprint() instead of stdio"); - char ch = (char)c; - terminal_write(&ch, sizeof(ch)); #else abort(); #endif