From: Kay Sievers Date: Wed, 23 Mar 2011 00:41:25 +0000 (+0100) Subject: udevd: use facility == LOG_DAEMON when writing to /dev/kmsg X-Git-Tag: 174~222 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf3b3fbcd5c43bdc5e7e15189c71b62a36a1cf03;p=systemd 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). --- diff --git a/TODO b/TODO index 029b70e1..f40c8cfd 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,5 @@ + - bind control socket in systemd - o get rid of "scan all devices to find myself" libusb interface - if it can not be fixed, drop libusb entirely and add a simple - wrapper around the Linux usb ioctls we need - o remove deprecated BUS=, SYSFS{}=, ID= keys + - kill --failed + + - remove deprecated BUS=, SYSFS{}=, ID= keys diff --git a/udev/udev-event.c b/udev/udev-event.c index 137ba367..63a8b3aa 100644 --- a/udev/udev-event.c +++ b/udev/udev-event.c @@ -454,7 +454,7 @@ static void rename_netif_kernel_log(struct ifreq ifr) return; } - fprintf(f, "<6>udev[%u]: renamed network interface %s to %s\n", + fprintf(f, "<30>udev[%u]: renamed network interface %s to %s\n", getpid(), ifr.ifr_name, ifr.ifr_newname); fclose(f); } diff --git a/udev/udevd.c b/udev/udevd.c index fe0e3c39..2a42dfa7 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); }