You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/04/03 10:04:37 UTC

[incubator-nuttx-apps] 04/07: system/trace: force flush the output stream

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 2fd38eb57bc63e0e1208c9bf6d4a4ae864b6de04
Author: chao.an <an...@xiaomi.com>
AuthorDate: Wed Mar 30 22:10:03 2022 +0800

    system/trace: force flush the output stream
    
    Signed-off-by: chao.an <an...@xiaomi.com>
---
 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 9ffd788..a75af19 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;