diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-06-23 17:35:37 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-06-23 17:35:37 +0200 |
commit | 3bf1efa8ddee3999656b0454734bc6b39fc7c00b (patch) | |
tree | a6cd21c1186f963efadbfed4c9daf802df2195b9 | |
parent | 92b229c727e34164a88f59142054d4cdee510f4c (diff) |
udevd: do not use syslog if --verbose (debugging) is used
-rw-r--r-- | udevd.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -76,15 +76,16 @@ void log_message(int priority, const char *format, ...) if (priority > udev_log_priority) return; - va_start(args, format); - vsyslog(priority, format, args); - va_end(args); - if (verbose) { + printf("[%d] ", (int) getpid()); va_start(args, format); vprintf(format, args); va_end(args); printf("\n"); + } else { + va_start(args, format); + vsyslog(priority, format, args); + va_end(args); } } |