aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/actions/sys_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/syscall/actions/sys_write.c')
-rw-r--r--src/kernel/syscall/actions/sys_write.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/kernel/syscall/actions/sys_write.c b/src/kernel/syscall/actions/sys_write.c
index aef2b2b..e0db9b0 100644
--- a/src/kernel/syscall/actions/sys_write.c
+++ b/src/kernel/syscall/actions/sys_write.c
@@ -3,9 +3,8 @@
#include <kernel/lib/string.h>
#include <kernel/io/io.h>
-uint32_t sys_write(unsigned int buf)
+uint32_t sys_write(char *buf)
{
- serial_put(((char *) buf)[0]);
- printf((const char *) buf);
+ printf(buf);
return strlen((const char *) buf);
} \ No newline at end of file