system/trace: Check NOTERAM_GETTASKNAME existence directly
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
6e67d8ab78
commit
77ac0e4838
@ -246,7 +246,7 @@ FAR static struct trace_dump_task_context_s *get_task_context(pid_t pid,
|
|||||||
(*tctxp)->syscall_nest = 0;
|
(*tctxp)->syscall_nest = 0;
|
||||||
(*tctxp)->name[0] = '\0';
|
(*tctxp)->name[0] = '\0';
|
||||||
|
|
||||||
#if CONFIG_DRIVER_NOTERAM_TASKNAME_BUFSIZE > 0
|
#ifdef NOTERAM_GETTASKNAME
|
||||||
{
|
{
|
||||||
struct noteram_get_taskname_s tnm;
|
struct noteram_get_taskname_s tnm;
|
||||||
int res;
|
int res;
|
||||||
|
Loading…
Reference in New Issue
Block a user