From: Uwe Hermann Date: Fri, 20 Apr 2018 19:45:04 +0000 (+0200) Subject: srd_logv(): Add an explicit fflush(). X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=76175247072618ed85b674f277bec6ce78397d13;p=libsigrokdecode.git srd_logv(): Add an explicit fflush(). --- diff --git a/log.c b/log.c index 721258e..a94bde7 100644 --- a/log.c +++ b/log.c @@ -165,6 +165,8 @@ static int srd_logv(void *cb_data, int loglevel, const char *format, || putc('\n', stderr) < 0) return SRD_ERR; + fflush(stderr); + return SRD_OK; }