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 2021/12/14 17:17:03 UTC

[incubator-nuttx-apps] 03/03: trace dump: the note dump module of out keep string output

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 1e28c3b9eac654b4577ce8c408b5f56a5a6f0d2b
Author: zhanghu6 <zh...@xiaomi.com>
AuthorDate: Tue Dec 7 14:11:58 2021 +0800

    trace dump: the note dump module of out keep string output
---
 system/trace/trace_dump.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/system/trace/trace_dump.c b/system/trace/trace_dump.c
index b7ac847..8863858 100644
--- a/system/trace/trace_dump.c
+++ b/system/trace/trace_dump.c
@@ -634,8 +634,10 @@ static int trace_dump_one(FAR FILE *out,
           nbi = (FAR struct note_binary_s *)p;
           trace_dump_header(out, note, ctx);
           count = note->nc_length - sizeof(struct note_binary_s) + 1;
-          fprintf(out, "dump_binary: module=%u event=%u count=%u",
-                  nbi->nbi_module, nbi->nbi_event, count);
+          fprintf(out, "dump_binary: module=%c%c%c%c event=%u count=%u",
+                  nbi->nbi_module[0], nbi->nbi_module[1],
+                  nbi->nbi_module[2], nbi->nbi_module[3],
+                  nbi->nbi_event, count);
           for (i = 0; i < count; i++)
             {
               fprintf(out, " 0x%x", nbi->nbi_data[i]);