diff options
author | Jean Tourrilhes <jt@hpl.hp.com> | 2007-03-16 01:09:47 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-03-16 01:09:47 +0100 |
commit | 043c6f6d4a97ab3a4aeea8cca16c1cc754b0e5ee (patch) | |
tree | 53052f75f5033ef0a8cee347190cd3884f367e20 /udevtest.c | |
parent | 3f641815ec524bee6bcd47df0103a8b4c05794dd (diff) |
udevtest: export UDEV_LOG if we changed it
Diffstat (limited to 'udevtest.c')
-rw-r--r-- | udevtest.c | 7 |
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]; |