summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/shared/dlt_common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c
index bf363b7..fc6d49b 100755
--- a/src/shared/dlt_common.c
+++ b/src/shared/dlt_common.c
@@ -2067,8 +2067,10 @@ int dlt_log(int prio, char *s)
break;
case 2:
/* log to file */
- if(logging_handle)
+ if(logging_handle) {
fprintf(logging_handle,logfmtstring, s);
+ fflush(logging_handle);
+ }
break;
}