summaryrefslogtreecommitdiffstats
path: root/src/udev/udevadm.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-01-17 05:32:29 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-01-25 12:32:18 +0100
commit3cc6b14a87f813bfdda36fe3ca0e65888cffd0b2 (patch)
tree33df75d21e3e49513e186e976d884c032cdcf5e0 /src/udev/udevadm.c
parentselinux-util: do not use log_internal_realm() without setting log realm (diff)
downloadsystemd-3cc6b14a87f813bfdda36fe3ca0e65888cffd0b2.tar.xz
systemd-3cc6b14a87f813bfdda36fe3ca0e65888cffd0b2.zip
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/udev/udevadm.c')
-rw-r--r--src/udev/udevadm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/udev/udevadm.c b/src/udev/udevadm.c
index 408e4a3467..39e40411b1 100644
--- a/src/udev/udevadm.c
+++ b/src/udev/udevadm.c
@@ -122,8 +122,6 @@ static int run(int argc, char *argv[]) {
if (r <= 0)
return r;
- log_set_max_level_realm(LOG_REALM_SYSTEMD, log_get_max_level());
-
r = mac_selinux_init();
if (r < 0)
return r;