From 77ac0e4838a3646c3f4ba71587e333c658996c53 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 24 Dec 2022 16:03:34 +0800 Subject: [PATCH] system/trace: Check NOTERAM_GETTASKNAME existence directly Signed-off-by: Xiang Xiao --- 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;