summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/udevd.c b/udevd.c
index eb311dfba7..7f32a2aa79 100644
--- a/udevd.c
+++ b/udevd.c
@@ -76,17 +76,14 @@ void log_message(int priority, const char *format, ...)
if (priority > udev_log_priority)
return;
+ va_start(args, format);
if (verbose) {
printf("[%d] ", (int) getpid());
- va_start(args, format);
vprintf(format, args);
- va_end(args);
printf("\n");
- } else {
- va_start(args, format);
+ } else
vsyslog(priority, format, args);
- va_end(args);
- }
+ va_end(args);
}
#endif