summaryrefslogtreecommitdiff
path: root/src/shared/udev-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-01-17 13:32:29 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-01-25 20:32:18 +0900
commit3cc6b14a87f813bfdda36fe3ca0e65888cffd0b2 (patch)
tree33df75d21e3e49513e186e976d884c032cdcf5e0 /src/shared/udev-util.c
parent10d296c1892c806fba93598a7a141c3afe7883fa (diff)
downloadsystemd-3cc6b14a87f813bfdda36fe3ca0e65888cffd0b2.tar.gz
udev: stop to use LOG_REALM_UDEV
Before this commit, udevd is built with LOG_REALM=LOG_REALM_UDEV. However, log level specified by e.g. environment variable or kernel command line option are also passed to LOG_REALM_SYSTEMD. So, the maximum log level for the two realms are always equivalent, and it is not necessary to specify the build option. Hence drop it.
Diffstat (limited to 'src/shared/udev-util.c')
-rw-r--r--src/shared/udev-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/udev-util.c b/src/shared/udev-util.c
index df08e3a40e..61decb80fa 100644
--- a/src/shared/udev-util.c
+++ b/src/shared/udev-util.c
@@ -68,7 +68,7 @@ int udev_parse_config_full(
/* we set the udev log level here explicitly, this is supposed
* to regulate the code in libudev/ and udev/. */
- r = log_set_max_level_from_string_realm(LOG_REALM_UDEV, log);
+ r = log_set_max_level_from_string(log);
if (r < 0)
log_syntax(NULL, LOG_WARNING, "/etc/udev/udev.conf", 0, r,
"failed to set udev log level '%s', ignoring: %m", log);