From 21e8d5efc5da1a4633dd0a7ee367196ad879a0c3 Mon Sep 17 00:00:00 2001 From: Adrian Bonislawski Date: Thu, 4 Apr 2019 11:30:43 +0200 Subject: [PATCH] heap-debug: use the correct functions for heap trace Signed-off-by: Adrian Bonislawski --- src/lib/alloc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/alloc.c b/src/lib/alloc.c index a696598c6..8278e253e 100644 --- a/src/lib/alloc.c +++ b/src/lib/alloc.c @@ -472,7 +472,8 @@ void alloc_trace_runtime_heap(int zone, uint32_t caps, size_t bytes) /* check runtime heap for capabilities */ trace_mem_error("heap: using runtime"); do { - heap = get_runtime_heap_from_caps(caps, current); + heap = get_heap_from_caps(memmap.runtime, PLATFORM_HEAP_RUNTIME, + caps); if (heap) { trace_heap_blocks(heap); count++; @@ -494,7 +495,8 @@ void alloc_trace_buffer_heap(int zone, uint32_t caps, size_t bytes) /* check buffer heap for capabilities */ trace_mem_error("heap: using buffer"); do { - heap = get_buffer_heap_from_caps(caps, current); + heap = get_heap_from_caps(memmap.buffer, PLATFORM_HEAP_BUFFER, + caps); if (heap) { trace_heap_blocks(heap); count++;