summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--udevd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/udevd.c b/udevd.c
index 23df5359bb..0999b5fa75 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);
}
}