mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
fs_procfsproc:fix proc_heap to get kernel task info
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
This commit is contained in:
@@ -902,7 +902,7 @@ static ssize_t proc_heap(FAR struct proc_file_s *procfile,
|
||||
#ifdef CONFIG_MM_KERNEL_HEAP
|
||||
if ((tcb->flags & TCB_FLAG_TTYPE_MASK) == TCB_FLAG_TTYPE_KERNEL)
|
||||
{
|
||||
info = fs_heap_mallinfo_task(&task);
|
||||
info = kmm_mallinfo_task(&task);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user