LibC: Remove actual printing from putc() since we were panicing anyway

This commit is contained in:
Bananymous 2022-12-10 00:30:00 +02:00
parent 26f1ebe26f
commit ac2ba8bc56
1 changed files with 2 additions and 5 deletions

View File

@ -1,18 +1,15 @@
#include <stdio.h>
#if defined(__is_libk)
#include <kernel/tty.h>
#include <kernel/panic.h>
#include <kernel/panic.h>
#else
#include <stdlib.h>
#include <stdlib.h>
#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