summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-04-20 21:45:04 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2018-04-20 21:45:04 +0200
commit76175247072618ed85b674f277bec6ce78397d13 (patch)
tree1ed6cd7bdfe7952deabed3829ab5d038a0672eb0 /log.c
parent1dac69e9b0bc1d12c45d2a6e49b9890f29b744cb (diff)
downloadlibsigrokdecode-76175247072618ed85b674f277bec6ce78397d13.tar.gz
libsigrokdecode-76175247072618ed85b674f277bec6ce78397d13.zip
srd_logv(): Add an explicit fflush().
Diffstat (limited to 'log.c')
-rw-r--r--log.c2
1 files changed, 2 insertions, 0 deletions
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;
}