summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2020-09-21 11:10:50 +0200
committerFranck Bui <fbui@suse.com>2020-09-22 09:05:57 +0200
commit64a3494c3d40cbf494c22aef1ae96f6a0e11c9a0 (patch)
treef5b70d679724fb5fe21d4da1998a44e5b47a6f4a
parent8a4024120f7847e145daa15aa70a1df19957c7a4 (diff)
downloadsystemd-64a3494c3d40cbf494c22aef1ae96f6a0e11c9a0.tar.gz
udev: rename kernel option 'log_priority' into 'log_level'
Let's be consistent with the rest of the project. 'log_priority' is still supported for backward compatibility.
-rw-r--r--man/kernel-command-line.xml4
-rw-r--r--man/systemd-udevd.service.xml4
-rw-r--r--src/udev/udevd.c7
-rw-r--r--test/fuzz/fuzz-unit-file/directives.service4
4 files changed, 10 insertions, 9 deletions
diff --git a/man/kernel-command-line.xml b/man/kernel-command-line.xml
index b67639c92e..b0b45f4c62 100644
--- a/man/kernel-command-line.xml
+++ b/man/kernel-command-line.xml
@@ -263,8 +263,8 @@
</varlistentry>
<varlistentry>
- <term><varname>udev.log_priority=</varname></term>
- <term><varname>rd.udev.log_priority=</varname></term>
+ <term><varname>udev.log_level=</varname></term>
+ <term><varname>rd.udev.log_level=</varname></term>
<term><varname>udev.children_max=</varname></term>
<term><varname>rd.udev.children_max=</varname></term>
<term><varname>udev.exec_delay=</varname></term>
diff --git a/man/systemd-udevd.service.xml b/man/systemd-udevd.service.xml
index da7389c731..e49690dc74 100644
--- a/man/systemd-udevd.service.xml
+++ b/man/systemd-udevd.service.xml
@@ -143,8 +143,8 @@
<para>Parameters prefixed with "rd." will be read when <command>systemd-udevd</command> is used in an
initrd, those without will be processed both in the initrd and on the host.</para>
<varlistentry>
- <term><varname>udev.log_priority=</varname></term>
- <term><varname>rd.udev.log_priority=</varname></term>
+ <term><varname>udev.log_level=</varname></term>
+ <term><varname>rd.udev.log_level=</varname></term>
<listitem>
<para>Set the log level.</para>
</listitem>
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 22dad2acaf..d6415ad57e 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1050,7 +1050,7 @@ static int on_ctrl_msg(struct udev_ctrl *uctrl, enum udev_ctrl_msg_type type, co
switch (type) {
case UDEV_CTRL_SET_LOG_LEVEL:
- log_debug("Received udev control message (SET_LOG_LEVEL), setting log_priority=%i", value->intval);
+ log_debug("Received udev control message (SET_LOG_LEVEL), setting log_level=%i", value->intval);
log_set_max_level_realm(LOG_REALM_UDEV, value->intval);
log_set_max_level_realm(LOG_REALM_SYSTEMD, value->intval);
manager_kill_workers(manager);
@@ -1467,7 +1467,7 @@ static int listen_fds(int *ret_ctrl, int *ret_netlink) {
/*
* read the kernel command line, in case we need to get into debug mode
- * udev.log_priority=<level> syslog priority
+ * udev.log_level=<level> syslog priority
* udev.children_max=<number of workers> events are fully serialized if set to 1
* udev.exec_delay=<number of seconds> delay execution of every executed program
* udev.event_timeout=<number of seconds> seconds to wait before terminating an event
@@ -1478,7 +1478,8 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat
assert(key);
- if (proc_cmdline_key_streq(key, "udev.log_priority")) {
+ if (proc_cmdline_key_streq(key, "udev.log_level") ||
+ proc_cmdline_key_streq(key, "udev.log_priority")) { /* kept for backward compatibility */
if (proc_cmdline_value_missing(key, value))
return 0;
diff --git a/test/fuzz/fuzz-unit-file/directives.service b/test/fuzz/fuzz-unit-file/directives.service
index 21a04cfba7..eebc89f5c2 100644
--- a/test/fuzz/fuzz-unit-file/directives.service
+++ b/test/fuzz/fuzz-unit-file/directives.service
@@ -297,7 +297,7 @@ rd.systemd.verity=
rd.udev.children_max=
rd.udev.event_timeout=
rd.udev.exec_delay=
-rd.udev.log_priority=
+rd.udev.log_level=
resume=
resumeflags=
root=
@@ -331,7 +331,7 @@ systemd.watchdog_device=
udev.children_max=
udev.event_timeout=
udev.exec_delay=
-udev.log_priority=
+udev.log_level=
vconsole.font=
vconsole.font_map=
vconsole.font_unimap=