mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user