parent
0a9f03e615
commit
7ac2eb01fc
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,9 @@ void mbp_log(int level, const char *fmt, ...)
|
||||||
if (daemonize) {
|
if (daemonize) {
|
||||||
vsyslog(level, fmt, args);
|
vsyslog(level, fmt, args);
|
||||||
}
|
}
|
||||||
|
va_end(args);
|
||||||
|
|
||||||
|
va_start(args, fmt);
|
||||||
vprintf(fmt, args);
|
vprintf(fmt, args);
|
||||||
puts(""); // trailing newline
|
puts(""); // trailing newline
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
Loading…
Add table
Reference in a new issue