From fa209351138bbd56b6a403bb8fdc5b12a7835ea5 Mon Sep 17 00:00:00 2001 From: Daniel Baluta Date: Tue, 23 Aug 2022 19:12:09 +0300 Subject: [PATCH] lib: alloc: Add missing format specifier This causes problems when displaying heap traces. Fixes: b67c2bf0d9732 ("alloc: Making heap trace dump more readable") Signed-off-by: Daniel Baluta --- src/lib/alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/alloc.c b/src/lib/alloc.c index fca16283b..0449293dc 100644 --- a/src/lib/alloc.c +++ b/src/lib/alloc.c @@ -576,7 +576,7 @@ void heap_trace(struct mm_heap *heap, int size) tr_info(&mem_tr, " %d Bytes blocks ID:%d base 0x%x", current_map->block_size, j, current_map->base); - tr_info(&mem_tr, " Number of Blocks: total % used %d free %d", + tr_info(&mem_tr, " Number of Blocks: total %d used %d free %d", current_map->count, (current_map->count - current_map->free_count), current_map->free_count);