mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-27 13:57:26 +03:00
udevtest: export UDEV_LOG if we changed it
This commit is contained in:
parent
3f641815ec
commit
043c6f6d4a
@ -59,8 +59,13 @@ int main(int argc, char *argv[], char *envp[])
|
||||
|
||||
info("version %s", UDEV_VERSION);
|
||||
udev_config_init();
|
||||
if (udev_log_priority < LOG_INFO)
|
||||
if (udev_log_priority < LOG_INFO) {
|
||||
char priority[32];
|
||||
|
||||
udev_log_priority = LOG_INFO;
|
||||
sprintf(priority, "%i", udev_log_priority);
|
||||
setenv("UDEV_LOG", priority, 1);
|
||||
}
|
||||
|
||||
for (i = 1 ; i < argc; i++) {
|
||||
char *arg = argv[i];
|
||||
|
Loading…
x
Reference in New Issue
Block a user