1
0
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:
Kay Sievers 2010-08-19 08:49:43 +02:00
parent d15b727ef1
commit c25bfbfb1b
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);
}