summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Menzhinsky <amenzhinsky@gmail.com>2018-10-30 04:52:15 +0300
committerChristoph Lipka <clipka@users.noreply.github.com>2018-10-30 10:52:15 +0900
commit6cbaa4fd39fb584a227b8eb7a3331dcfce54d9a3 (patch)
tree962fee62d66e8b03135955e82e3057d42a4d3c04
parentac44c47265528ddd29afbb9a72bcf095a877ecd1 (diff)
downloadDLT-daemon-6cbaa4fd39fb584a227b8eb7a3331dcfce54d9a3.tar.gz
Fflush stdout in the intenal logger (#81)
-rw-r--r--src/shared/dlt_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c
index 17d0add..aafa026 100644
--- a/src/shared/dlt_common.c
+++ b/src/shared/dlt_common.c
@@ -2051,6 +2051,7 @@ DltReturnValue dlt_log(int prio, char *s)
case DLT_LOG_TO_CONSOLE:
/* log to stdout */
printf(sFormatString, (unsigned int)sTimeSpec.tv_sec, (unsigned int)(sTimeSpec.tv_nsec/1000), getpid(), asSeverity[prio], s);
+ fflush(stdout);
break;
case DLT_LOG_TO_SYSLOG:
/* log to syslog */