summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-11-08 17:51:59 +0100
committerKay Sievers <kay.sievers@vrfy.org>2007-11-08 17:51:59 +0100
commit225cb03bd851adc6d269b13bdf2b1bfded2b96b9 (patch)
tree41b8b7e7042662172d545b4e29e7594411740fa9 /udevd.c
parent01ac7d96fa65e83c71d5bba40633e813e9b4015b (diff)
udevadm: merge all udev tools into a single binary
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