summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-08-19 08:49:43 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-08-19 08:49:43 +0200
commitc25bfbfb1b20781698ff3c8cbc884a9e190052ee (patch)
tree34edbcd389b082b23ff44bd3261524ad4c8df619 /udev
parentd15b727ef1375c665057c0fa278b2ea3778b8d3d (diff)
udevd: add pid to kmsg logs
Diffstat (limited to 'udev')
-rw-r--r--udev/udev-event.c4
-rw-r--r--udev/udevd.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/udev/udev-event.c b/udev/udev-event.c
index 9b5326bf22..ae523f83c5 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 61b76f5c3e..ad2ca3b4d2 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);
}