Commit 027df02d authored by Timo Teräs's avatar Timo Teräs

print: handle mixing stdout and stderr printing

Fixes regression from commit 5ba27c90 which caused stdio
buffering issues now that output is split to stderr/stdout.

See also commit 51737872 for some of the history.

Fixes #7107
parent f3a4272a
......@@ -159,6 +159,8 @@ const char *apk_error_str(int error)
static void log_internal(FILE *dest, const char *prefix, const char *format, va_list va)
if (dest != stdout)
if (prefix != NULL)
fprintf(dest, "%s", prefix);
vfprintf(dest, format, va);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment