1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

udevadm: logging - copy va_list and do not use it twice

This commit is contained in:
Kay Sievers 2009-12-25 16:14:22 +01:00
parent f46d2e54a8
commit d5a01cb8b3

View File

@ -35,7 +35,11 @@ static void log_fn(struct udev *udev, int priority,
fprintf(stderr, "%s: ", fn); fprintf(stderr, "%s: ", fn);
vfprintf(stderr, format, args); vfprintf(stderr, format, args);
} else { } else {
vfprintf(stderr, format, args); va_list args2;
va_copy(args2, args);
vfprintf(stderr, format, args2);
va_end(args2);
vsyslog(priority, format, args); vsyslog(priority, format, args);
} }
} }