From 043c6f6d4a97ab3a4aeea8cca16c1cc754b0e5ee Mon Sep 17 00:00:00 2001 From: Jean Tourrilhes Date: Fri, 16 Mar 2007 01:09:47 +0100 Subject: [PATCH] udevtest: export UDEV_LOG if we changed it --- udevtest.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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]; -- 2.39.5