From: Jean Tourrilhes Date: Fri, 16 Mar 2007 00:09:47 +0000 (+0100) Subject: udevtest: export UDEV_LOG if we changed it X-Git-Tag: 174~2037 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=043c6f6d4a97ab3a4aeea8cca16c1cc754b0e5ee;p=systemd udevtest: export UDEV_LOG if we changed it --- diff --git a/udevtest.c b/udevtest.c index 2854f755..73bf7dd1 100644 --- a/udevtest.c +++ b/udevtest.c @@ -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];