summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r--src/kernel/syscalls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c
index ece21db..47f8b2b 100644
--- a/src/kernel/syscalls.c
+++ b/src/kernel/syscalls.c
@@ -11,7 +11,7 @@ _Noreturn void _syscall_exit(const char *msg, size_t len) {
if (process_current)
process_switch(process_current);
- log_const("last process returned. ");
+ tty_const("last process returned. ");
panic();
}
@@ -31,7 +31,7 @@ int _syscall_debuglog(const char *msg, size_t len) {
if (((uintptr_t)msg & PAGE_MASK) + len > PAGE_SIZE)
panic(); // just in case I made an off by 1 error
- log_write(phys, len);
+ tty_write(phys, len);
return len;
}
@@ -44,7 +44,7 @@ int syscall_handler(int num, int a, int b, int c) {
case _SYSCALL_DEBUGLOG:
return _syscall_debuglog((void*)a, b);
default:
- log_const("unknown syscall ");
+ tty_const("unknown syscall ");
panic();
}
}