summaryrefslogtreecommitdiff
path: root/udev/udevadm.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-12-25 16:14:22 +0100
committerKay Sievers <kay.sievers@vrfy.org>2009-12-25 16:14:22 +0100
commitd5a01cb8b31bd0791d1617c56d4c669a02018bd7 (patch)
treee617d42e67c08056030512d2c4367bf03854eb34 /udev/udevadm.c
parentf46d2e54a82086eddcd9cd91e7908e87d7424148 (diff)
udevadm: logging - copy va_list and do not use it twice
Diffstat (limited to 'udev/udevadm.c')
-rw-r--r--udev/udevadm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/udev/udevadm.c b/udev/udevadm.c
index 00c2350d35..21b7f616c3 100644
--- a/udev/udevadm.c
+++ b/udev/udevadm.c
@@ -35,7 +35,11 @@ static void log_fn(struct udev *udev, int priority,
fprintf(stderr, "%s: ", fn);
vfprintf(stderr, format, args);
} else {
- vfprintf(stderr, format, args);
+ va_list args2;
+
+ va_copy(args2, args);
+ vfprintf(stderr, format, args2);
+ va_end(args2);
vsyslog(priority, format, args);
}
}