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.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c
index 3cfc0ef..efa1d54 100644
--- a/src/kernel/syscalls.c
+++ b/src/kernel/syscalls.c
@@ -290,11 +290,12 @@ ret: // the macro is too stupid to handle returning pointers
}
void _syscall_debug_klog(const void __user *buf, size_t len) {
- static char kbuf[256];
- if (len >= sizeof(kbuf)) len = sizeof(kbuf) - 1;
- virt_cpy_from(process_current->pages, kbuf, buf, len);
- kbuf[len] = '\0';
- kprintf("[klog] %x\t%s\n", process_current->id, kbuf);
+ (void)buf; (void)len;
+ // static char kbuf[256];
+ // if (len >= sizeof(kbuf)) len = sizeof(kbuf) - 1;
+ // virt_cpy_from(process_current->pages, kbuf, buf, len);
+ // kbuf[len] = '\0';
+ // kprintf("[klog] %x\t%s\n", process_current->id, kbuf);
}
int _syscall(int num, int a, int b, int c, int d) {