summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-12-05 10:58:23 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2013-12-05 10:58:23 +0100
commit1f8b79347187ab0933b595ded32b69217903037c (patch)
treed7beb050e3a7828ce258c7874e839c63f1a2dd96 /src/print.c
parent517378721855280d2e23d25d7529e6b9cbae9136 (diff)
downloadapk-tools-1f8b79347187ab0933b595ded32b69217903037c.tar.gz
apk-tools-1f8b79347187ab0933b595ded32b69217903037c.tar.bz2
apk-tools-1f8b79347187ab0933b595ded32b69217903037c.tar.xz
apk-tools-1f8b79347187ab0933b595ded32b69217903037c.zip
print: flush on apk_log
Makes it more useful whith pipes.
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c
index aafe2ef..d8b0f3f 100644
--- a/src/print.c
+++ b/src/print.c
@@ -149,6 +149,7 @@ void apk_log(const char *prefix, const char *format, ...)
vfprintf(stdout, format, va);
va_end(va);
fprintf(stdout, "\n");
+ fflush(stdout);
apk_progress_force = 1;
}