send header before other messages
This commit is contained in:
parent
f8aff7fe05
commit
843d1f0ab7
1 changed files with 2 additions and 0 deletions
2
utils.c
2
utils.c
|
@ -83,6 +83,8 @@ errlog(const char *format, ...)
|
|||
char e[1024] = {'\0'};
|
||||
va_list ap;
|
||||
|
||||
fflush(stdout); /* make sure older messages are printed */
|
||||
|
||||
va_start(ap, format);
|
||||
vsnprintf(e, sizeof(e), format, ap);
|
||||
va_end(ap);
|
||||
|
|
Loading…
Reference in a new issue