1
1
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:
Jean Tourrilhes 2007-03-16 01:09:47 +01:00 committed by Kay Sievers
parent 3f641815ec
commit 043c6f6d4a

View File

@ -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];