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/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new ecadbbb43 trace: expand NOTE_DUMP_STRING
ecadbbb43 is described below

commit ecadbbb43ca75d5e13ce2908ca50b8d73029b4fe
Author: yinshengkai <[email protected]>
AuthorDate: Tue Feb 7 14:39:43 2023 +0800

    trace: expand NOTE_DUMP_STRING
    
    Signed-off-by: yinshengkai <[email protected]>
---
 system/trace/trace_dump.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/system/trace/trace_dump.c b/system/trace/trace_dump.c
index 18c1cf00e..77c2fe110 100644
--- a/system/trace/trace_dump.c
+++ b/system/trace/trace_dump.c
@@ -646,6 +646,14 @@ static int trace_dump_one(trace_dump_t type, FAR FILE 
*out, FAR uint8_t *p,
               fprintf(out, "tracing_mark_write: %c|%d|%pS\n",
                       nst->nst_data[0], pid, (FAR void *)ip);
             }
+          else if (type == TRACE_TYPE_ANDROID &&
+              nst->nst_data[1] == '|' &&
+              (nst->nst_data[0] == 'B' ||
+               nst->nst_data[0] == 'E'))
+            {
+              fprintf(out, "tracing_mark_write: %s\n",
+                      nst->nst_data);
+            }
           else
             {
               fprintf(out, "%pS: %s\n", (FAR void *)ip, nst->nst_data);

Reply via email to