system/trace: Check NOTERAM_GETTASKNAME existence directly

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-12-24 16:03:34 +08:00 committed by archer
parent 6e67d8ab78
commit 77ac0e4838

View File

@ -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;