mirror of
https://github.com/systemd/systemd.git
synced 2025-03-24 14:50:17 +03:00
udevd: do not use syslog if --verbose (debugging) is used
This commit is contained in:
parent
92b229c727
commit
3bf1efa8dd
9
udevd.c
9
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user