diff options
author | Mike Galbraith <efault@gmx.de> | 2006-12-07 05:37:42 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 17:39:38 +0100 |
commit | c36264dfb2d6fa6383082de0a1bba8e12b477da1 (patch) | |
tree | 25efc8365544d12974f0633ad46f619bfbf087e1 /kernel/printk.c | |
parent | [PATCH] qconf: support old QT (diff) | |
download | linux-c36264dfb2d6fa6383082de0a1bba8e12b477da1.tar.xz linux-c36264dfb2d6fa6383082de0a1bba8e12b477da1.zip |
[PATCH] remove the syslog interface when printk is disabled
Attempts to read() from the non-existent dmesg buffer will return zero and
userspace tends to get stuck in a busyloop.
So just remove /dev/kmsg altogether if CONFIG_PRINTK=n.
Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to '')
-rw-r--r-- | kernel/printk.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/kernel/printk.c b/kernel/printk.c index 66426552fbfe..ba59c2a30ed0 100644 --- a/kernel/printk.c +++ b/kernel/printk.c @@ -631,12 +631,7 @@ EXPORT_SYMBOL(vprintk); asmlinkage long sys_syslog(int type, char __user *buf, int len) { - return 0; -} - -int do_syslog(int type, char __user *buf, int len) -{ - return 0; + return -ENOSYS; } static void call_console_drivers(unsigned long start, unsigned long end) |