util: log: fflush() stderr after each log line 07/129507/1
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 16 May 2017 17:36:35 +0000 (19:36 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 16 May 2017 20:48:39 +0000 (22:48 +0200)
Change-Id: Ifaff8c9718edaa54db2a5c051404f0b6bc1490b1
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
src/util/log.c

index e120edbceb7363e4eefcfd45bd00118b1429d80f..0e12efeb969f280dc9b105d0de5d3f4c28426554 100644 (file)
@@ -96,5 +96,6 @@ int log_internal(int level,
        va_end(ap);
 
        fprintf(stderr, "<%d>:%s:%d:%s:%s\n", level, file, line, func, buffer);
+       fflush(stderr);
        return -error;
 }