udev: suppress multiple log message about interface naming scheme from workers

This commit is contained in:
Yu Watanabe
2022-04-10 23:55:06 +09:00
parent d806fff1dd
commit 262953ac77

View File

@@ -1138,8 +1138,15 @@ static int builtin_net_id(sd_device *dev, sd_netlink **rtnl, int argc, char *arg
return 0;
}
static int builtin_net_id_init(void) {
/* Load naming scheme here to suppress log messages in workers. */
naming_scheme();
return 0;
}
const UdevBuiltin udev_builtin_net_id = {
.name = "net_id",
.cmd = builtin_net_id,
.init = builtin_net_id_init,
.help = "Network device properties",
};