From cf3b3fbcd5c43bdc5e7e15189c71b62a36a1cf03 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 23 Mar 2011 01:41:25 +0100 Subject: udevd: use facility == LOG_DAEMON when writing to /dev/kmsg Syslog wants to distinguish the sorce of messages. We should indicate that this is a userspace message (LOG_DAEMON) and not a kernel message (LOG_KERNEL). --- udev/udevd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'udev/udevd.c') diff --git a/udev/udevd.c b/udev/udevd.c index fe0e3c3929..2a42dfa765 100644 --- a/udev/udevd.c +++ b/udev/udevd.c @@ -994,7 +994,7 @@ static int convert_db(struct udev *udev) f = fopen("/dev/kmsg", "w"); if (f != NULL) { - fprintf(f, "<6>udev[%u]: converting old udev database\n", getpid()); + fprintf(f, "<30>udev[%u]: converting old udev database\n", getpid()); fclose(f); } @@ -1333,7 +1333,7 @@ int main(int argc, char *argv[]) f = fopen("/dev/kmsg", "w"); if (f != NULL) { - fprintf(f, "<6>udev[%u]: starting version " VERSION "\n", getpid()); + fprintf(f, "<30>udev[%u]: starting version " VERSION "\n", getpid()); fclose(f); } -- cgit v1.2.3-54-g00ecf