From fa07c90522014afdbd43e956432d7bbb379afe3c Mon Sep 17 00:00:00 2001 From: Petro Karashchenko Date: Tue, 2 May 2023 19:35:43 +0300 Subject: [PATCH] mm/tlsf: fix compilation warnings Signed-off-by: Petro Karashchenko --- mm/tlsf/mm_tlsf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mm/tlsf/mm_tlsf.c b/mm/tlsf/mm_tlsf.c index b2932346893..ea63c7afd44 100644 --- a/mm/tlsf/mm_tlsf.c +++ b/mm/tlsf/mm_tlsf.c @@ -282,10 +282,8 @@ static void mallinfo_task_handler(FAR void *ptr, size_t size, int used, { #if CONFIG_MM_BACKTRACE >= 0 FAR struct memdump_backtrace_s *dump; -#endif FAR struct mallinfo_task *info = user; -#if CONFIG_MM_BACKTRACE >= 0 size -= sizeof(struct memdump_backtrace_s); dump = ptr + size; @@ -929,7 +927,7 @@ void mm_memdump(FAR struct mm_heap_s *heap, pid_t pid) #else # define region 0 #endif - struct memdump_info_s info; + struct mallinfo_task info; if (pid >= MM_BACKTRACE_ALLOC_PID) { @@ -965,7 +963,7 @@ void mm_memdump(FAR struct mm_heap_s *heap, pid_t pid) info.pid = pid; mm_mallinfo_task(heap, &info); syslog(LOG_INFO, "%12s%12s\n", "Total Blks", "Total Size"); - syslog(LOG_INFO, "%12d%12d\n", info.blks, info.size); + syslog(LOG_INFO, "%12d%12d\n", info.aordblks, info.uordblks); } /****************************************************************************