system/trace: force flush the output stream

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-03-30 22:10:03 +08:00 committed by Xiang Xiao
parent 7612d2aea8
commit 2fd38eb57b

View File

@ -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;