msh: use list_memheap when RT_USING_MEMHEAP_AS_HEAP is enabled
There is no list_mem and only list_memheap when RT_USING_MEMHEAP_AS_HEAP is enabled.
This commit is contained in:
parent
c26b999360
commit
cf692a4ab4
@ -281,7 +281,11 @@ int cmd_free(int argc, char** argv)
|
|||||||
{
|
{
|
||||||
extern void list_mem(void);
|
extern void list_mem(void);
|
||||||
|
|
||||||
|
#ifdef RT_USING_MEMHEAP_AS_HEAP
|
||||||
|
list_memheap();
|
||||||
|
#else
|
||||||
list_mem();
|
list_mem();
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
FINSH_FUNCTION_EXPORT_ALIAS(cmd_free, __cmd_free, Show the memory usage in the system.);
|
FINSH_FUNCTION_EXPORT_ALIAS(cmd_free, __cmd_free, Show the memory usage in the system.);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user