diff --git a/libc/stdio.cpp b/libc/stdio.cpp index 9d6ab98f..616b7aca 100644 --- a/libc/stdio.cpp +++ b/libc/stdio.cpp @@ -1,5 +1,7 @@ #include #include +#include +#include #include struct FILE @@ -86,7 +88,7 @@ int putchar(int ch) int puts(const char* str) { - return printf("%s", str); + return syscall(SYS_WRITE, STDOUT_FILENO, str, strlen(str)); } int sprintf(char* __restrict__ stream, const char* __restrict__ format, ...)