mm/mm_heap: change CONFIG_MM_BACKTRACE to int type

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong
2022-07-04 15:41:06 +08:00
committed by Xiang Xiao
parent 8a1e985e71
commit 9899dd0ec0
13 changed files with 65 additions and 46 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ struct mallinfo
* by free (not in use) chunks. */
};
#ifdef CONFIG_MM_BACKTRACE
#if CONFIG_MM_BACKTRACE >= 0
struct mallinfo_task
{
pid_t pid; /* The pid of task */
@@ -72,7 +72,7 @@ extern "C"
struct mallinfo mallinfo(void);
size_t malloc_size(FAR void *ptr);
#ifdef CONFIG_MM_BACKTRACE
#if CONFIG_MM_BACKTRACE >= 0
struct mallinfo_task mallinfo_task(pid_t pid);
#endif