Re: [patch 1/4] Add <linux/klog.h>
From: Jan Engelhardt
Date: Sun Dec 24 2006 - 16:06:02 EST
On Dec 24 2006 12:22, Zack Weinberg wrote:
>===================================================================
>--- linux-2.6.orig/fs/proc/kmsg.c 2006-12-23 08:55:17.000000000 -0800
>+++ linux-2.6/fs/proc/kmsg.c 2006-12-24 11:43:14.000000000 -0800
>@@ -11,6 +11,7 @@
> #include <linux/kernel.h>
> #include <linux/poll.h>
> #include <linux/fs.h>
>+#include <linux/klog.h>
>
> #include <asm/uaccess.h>
> #include <asm/io.h>
>@@ -21,27 +22,28 @@
>
> static int kmsg_open(struct inode * inode, struct file * file)
> {
>- return do_syslog(1,NULL,0);
>+ return do_syslog(KLOG_OPEN, NULL, 0);
> }
>
> static int kmsg_release(struct inode * inode, struct file * file)
> {
>- (void) do_syslog(0,NULL,0);
>+ (void) do_syslog(KLOG_CLOSE, NULL, 0);
^^^^^^
I bet you can get rid of that in the process.
-`J'
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/