From 1e28c3b9eac654b4577ce8c408b5f56a5a6f0d2b Mon Sep 17 00:00:00 2001 From: zhanghu6 Date: Tue, 7 Dec 2021 14:11:58 +0800 Subject: [PATCH] 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 b7ac847d3..8863858fb 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]);