mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
udevadm: logging - copy va_list and do not use it twice
This commit is contained in:
parent
f46d2e54a8
commit
d5a01cb8b3
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user