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