Fix tlsf/mm_tlsf.c:151:28: error: ‘TCB_FLAG_HEAPDUMP’ undeclared

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-05-28 22:26:29 +08:00 committed by Petro Karashchenko
parent 3edff9d323
commit dfe583e1de
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ static void memdump_backtrace(FAR struct mm_heap_s *heap,
# if CONFIG_MM_BACKTRACE > 0
tcb = nxsched_get_tcb(buf->pid);
if (heap->mm_procfs.backtrace ||
(tcb && tcb->flags & TCB_FLAG_HEAPDUMP))
(tcb && tcb->flags & TCB_FLAG_HEAP_DUMP))
{
int ret = backtrace(buf->backtrace, CONFIG_MM_BACKTRACE);
if (ret < CONFIG_MM_BACKTRACE)