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

archer 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 77ac0e483 system/trace: Check NOTERAM_GETTASKNAME existence directly
77ac0e483 is described below

commit 77ac0e4838a3646c3f4ba71587e333c658996c53
Author: Xiang Xiao <[email protected]>
AuthorDate: Sat Dec 24 16:03:34 2022 +0800

    system/trace: Check NOTERAM_GETTASKNAME existence directly
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 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 1f4ccfe66..18c1cf00e 100644
--- a/system/trace/trace_dump.c
+++ b/system/trace/trace_dump.c
@@ -246,7 +246,7 @@ FAR static struct trace_dump_task_context_s 
*get_task_context(pid_t pid,
       (*tctxp)->syscall_nest = 0;
       (*tctxp)->name[0] = '\0';
 
-#if CONFIG_DRIVER_NOTERAM_TASKNAME_BUFSIZE > 0
+#ifdef NOTERAM_GETTASKNAME
         {
           struct noteram_get_taskname_s tnm;
           int res;

Reply via email to