mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
udev: set log.c's log level from udev's kernel command line option
This commit is contained in:
parent
45646bb0d1
commit
023b9d33e9
@ -1035,14 +1035,17 @@ static void kernel_cmdline_options(struct udev *udev)
|
|||||||
else
|
else
|
||||||
opt = s;
|
opt = s;
|
||||||
|
|
||||||
if (startswith(opt, "udev.log-priority="))
|
if (startswith(opt, "udev.log-priority=")) {
|
||||||
udev_set_log_priority(udev, util_log_priority(opt + 18));
|
int prio;
|
||||||
|
|
||||||
if (startswith(opt, "udev.children-max="))
|
prio = util_log_priority(opt + 18);
|
||||||
|
log_set_max_level(prio);
|
||||||
|
udev_set_log_priority(udev, prio);
|
||||||
|
} else if (startswith(opt, "udev.children-max=")) {
|
||||||
children_max = strtoul(opt + 18, NULL, 0);
|
children_max = strtoul(opt + 18, NULL, 0);
|
||||||
|
} else if (startswith(opt, "udev.exec-delay=")) {
|
||||||
if (startswith(opt, "udev.exec-delay="))
|
|
||||||
exec_delay = strtoul(opt + 16, NULL, 0);
|
exec_delay = strtoul(opt + 16, NULL, 0);
|
||||||
|
}
|
||||||
|
|
||||||
free(s);
|
free(s);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user