From 2fd38eb57bc63e0e1208c9bf6d4a4ae864b6de04 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Wed, 30 Mar 2022 22:10:03 +0800 Subject: [PATCH] system/trace: force flush the output stream Signed-off-by: chao.an --- system/trace/trace_dump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/trace/trace_dump.c b/system/trace/trace_dump.c index 9ffd788cf..a75af1965 100644 --- a/system/trace/trace_dump.c +++ b/system/trace/trace_dump.c @@ -653,6 +653,8 @@ static int trace_dump_one(FAR FILE *out, break; } + fflush(out); + /* Return the length of the processed note */ return note->nc_length;