diff options
author | dzwdz | 2022-07-01 21:07:06 +0200 |
---|---|---|
committer | dzwdz | 2022-07-01 21:07:06 +0200 |
commit | 5af715e76d65e0c8e5f9e3f066ae66475958689f (patch) | |
tree | b7dcf2b79cbd24c1dc70a6cbfeb5930abf35f1e5 /src/kernel | |
parent | 3e51220ebcfbcd9ae5a63f43e4b07c85004d9cfb (diff) |
kernel: disable klog
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/syscalls.c | 11 |
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) { |