This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 5aa48061c9da5268e0a9b749f9974f5a08af3451 Author: yinshengkai <[email protected]> AuthorDate: Wed Apr 10 13:41:50 2024 +0800 mm: fix mempool default recording backtrace Need to initialize procfs.backtrace to false if it's disabled. Signed-off-by: yinshengkai <[email protected]> --- mm/mempool/mempool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/mempool/mempool.c b/mm/mempool/mempool.c index 655906f4ea..4ea7a9e783 100644 --- a/mm/mempool/mempool.c +++ b/mm/mempool/mempool.c @@ -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
