forked from Bananymous/banan-os
LibC: Remove actual printing from putc() since we were panicing anyway
This commit is contained in:
parent
26f1ebe26f
commit
ac2ba8bc56
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue