summaryrefslogtreecommitdiff
path: root/udev/udevd.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-03-23 01:41:25 +0100
committerKay Sievers <kay.sievers@vrfy.org>2011-03-23 01:41:25 +0100
commitcf3b3fbcd5c43bdc5e7e15189c71b62a36a1cf03 (patch)
treeff0b3d0c16d7d48c9bc9a250cfec1b3baff40a14 /udev/udevd.c
parentb7822bc4986a5396af7621a6a03e163142d86277 (diff)
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).
Diffstat (limited to 'udev/udevd.c')
-rw-r--r--udev/udevd.c4
1 files changed, 2 insertions, 2 deletions
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);
}