summaryrefslogtreecommitdiff
path: root/udevtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'udevtest.c')
-rw-r--r--udevtest.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/udevtest.c b/udevtest.c
index 2854f7558f..73bf7dd1f8 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];