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/11/27 11:48:17 UTC

[incubator-nuttx-apps] branch master updated (16accc1 -> 7b192f2)

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

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


    from 16accc1  mcuboot/Kconfig: update hash commit to include fix for compilation warnings
     new c26c400  system/trace/trace_dump.c: Fix typo in a comment (NUL -> NULL).
     new 7b192f2  system/trace/trace.c: Condition the creation of "i" and "count" varialbes with SYSCALL or IRQ instrumentation to avoid a warning.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 system/trace/trace.c      | 4 ++++
 system/trace/trace_dump.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

[incubator-nuttx-apps] 01/02: system/trace/trace_dump.c: Fix typo in a comment (NUL -> NULL).

Posted by xi...@apache.org.
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 c26c4009d90c810ffe4723db26735f4fbef972de
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Mon Nov 15 16:48:15 2021 +0100

    system/trace/trace_dump.c: Fix typo in a comment (NUL -> NULL).
    
    Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
 system/trace/trace_dump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/system/trace/trace_dump.c b/system/trace/trace_dump.c
index a420724..897bbdf 100644
--- a/system/trace/trace_dump.c
+++ b/system/trace/trace_dump.c
@@ -85,7 +85,7 @@ struct trace_dump_task_context_s
   FAR struct trace_dump_task_context_s *next;
   pid_t pid;                              /* Task PID */
   int syscall_nest;                       /* Syscall nest level */
-  char name[CONFIG_TASK_NAME_SIZE + 1];   /* Task name (with NUL terminator) */
+  char name[CONFIG_TASK_NAME_SIZE + 1];   /* Task name (with NULL terminator) */
 };
 
 struct trace_dump_context_s

[incubator-nuttx-apps] 02/02: system/trace/trace.c: Condition the creation of "i" and "count" varialbes with SYSCALL or IRQ instrumentation to avoid a warning.

Posted by xi...@apache.org.
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 7b192f24fe85f6f1e022987857b180095cc75cbe
Author: Abdelatif Guettouche <ab...@espressif.com>
AuthorDate: Fri Nov 26 18:07:42 2021 +0100

    system/trace/trace.c: Condition the creation of "i" and "count"
    varialbes with SYSCALL or IRQ instrumentation to avoid a warning.
    
    Signed-off-by: Abdelatif Guettouche <ab...@espressif.com>
---
 system/trace/trace.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/system/trace/trace.c b/system/trace/trace.c
index c7f9d7f..843cdb4 100644
--- a/system/trace/trace.c
+++ b/system/trace/trace.c
@@ -292,8 +292,12 @@ static int trace_cmd_mode(int index, int argc, FAR char **argv,
 #ifdef CONFIG_SCHED_INSTRUMENTATION_IRQHANDLER
   struct note_filter_irq_s filter_irq;
 #endif
+
+#if defined(CONFIG_SCHED_INSTRUMENTATION_SYSCALL) ||\
+    defined(CONFIG_SCHED_INSTRUMENTATION_IRQHANDLER)
   int i;
   int count;
+#endif
 
   /* Usage: trace mode [{+|-}{o|s|a|i}...] */