]> sigrok.org Git - libsigrokdecode.git/commitdiff
srd_logv(): Add an explicit fflush().
authorUwe Hermann <redacted>
Fri, 20 Apr 2018 19:45:04 +0000 (21:45 +0200)
committerUwe Hermann <redacted>
Fri, 20 Apr 2018 19:45:04 +0000 (21:45 +0200)
log.c

diff --git a/log.c b/log.c
index 721258e1b1e951b74593d217046c7217b10d0c3a..a94bde73439d98ce065ad46bb6a111acfe62ab19 100644 (file)
--- 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;
 }