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>
|
#include <stdio.h>
|
||||||
|
|
||||||
#if defined(__is_libk)
|
#if defined(__is_libk)
|
||||||
#include <kernel/tty.h>
|
#include <kernel/panic.h>
|
||||||
#include <kernel/panic.h>
|
|
||||||
#else
|
#else
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int putchar(int c)
|
int putchar(int c)
|
||||||
{
|
{
|
||||||
#if defined(__is_libk)
|
#if defined(__is_libk)
|
||||||
Kernel::panic("Please use kprint() instead of stdio");
|
Kernel::panic("Please use kprint() instead of stdio");
|
||||||
char ch = (char)c;
|
|
||||||
terminal_write(&ch, sizeof(ch));
|
|
||||||
#else
|
#else
|
||||||
abort();
|
abort();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue