From c25bfbfb1b20781698ff3c8cbc884a9e190052ee Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 19 Aug 2010 08:49:43 +0200 Subject: [PATCH] udevd: add pid to kmsg logs --- udev/udev-event.c | 4 ++-- udev/udevd.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/udev/udev-event.c b/udev/udev-event.c index 9b5326bf224..ae523f83c57 100644 --- a/udev/udev-event.c +++ b/udev/udev-event.c @@ -454,8 +454,8 @@ static void rename_netif_kernel_log(struct ifreq ifr) return; } - fprintf(f, "<6>udev: renamed network interface %s to %s\n", - ifr.ifr_name, ifr.ifr_newname); + fprintf(f, "<6>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 61b76f5c3ec..ad2ca3b4d24 100644 --- a/udev/udevd.c +++ b/udev/udevd.c @@ -1298,7 +1298,7 @@ int main(int argc, char *argv[]) f = fopen("/dev/kmsg", "w"); if (f != NULL) { - fprintf(f, "<6>udev: starting version " VERSION "\n"); + fprintf(f, "<6>udev[%u]: starting version " VERSION "\n", getpid()); fclose(f); }