mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 06:18:40 +08:00
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);
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue