mm: fix mempool default recording backtrace

Need to initialize procfs.backtrace to false if it's disabled.

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2024-04-10 13:41:50 +08:00 committed by Xiang Xiao
parent 9c6c56c255
commit 5aa48061c9

View file

@ -312,6 +312,8 @@ int mempool_init(FAR struct mempool_s *pool, FAR const char *name)
mempool_procfs_register(&pool->procfs, name); mempool_procfs_register(&pool->procfs, name);
# ifdef CONFIG_MM_BACKTRACE_DEFAULT # ifdef CONFIG_MM_BACKTRACE_DEFAULT
pool->procfs.backtrace = true; pool->procfs.backtrace = true;
# elif CONFIG_MM_BACKTRACE > 0
pool->procfs.backtrace = false;
# endif # endif
#endif #endif