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:
parent
9c6c56c255
commit
5aa48061c9
1 changed files with 2 additions and 0 deletions
|
|
@ -312,6 +312,8 @@ int mempool_init(FAR struct mempool_s *pool, FAR const char *name)
|
|||
mempool_procfs_register(&pool->procfs, name);
|
||||
# ifdef CONFIG_MM_BACKTRACE_DEFAULT
|
||||
pool->procfs.backtrace = true;
|
||||
# elif CONFIG_MM_BACKTRACE > 0
|
||||
pool->procfs.backtrace = false;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue