mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
udevd: add pid to kmsg logs
This commit is contained in:
parent
d15b727ef1
commit
c25bfbfb1b
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user