From: Kay Sievers Date: Sat, 23 Jun 2007 15:35:37 +0000 (+0200) Subject: udevd: do not use syslog if --verbose (debugging) is used X-Git-Tag: 174~1898 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bf1efa8ddee3999656b0454734bc6b39fc7c00b;p=systemd udevd: do not use syslog if --verbose (debugging) is used --- diff --git a/udevd.c b/udevd.c index 23df5359..0999b5fa 100644 --- a/udevd.c +++ b/udevd.c @@ -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); } }