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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user