udevd: do not use syslog if --verbose (debugging) is used
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user