From 868de51ddee75d65f3ca4235f97900410f424def Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Tue, 26 Aug 2014 17:34:22 +0200 Subject: [PATCH] malloc: Output region when debugging When DEBUG is set, output memory region used for malloc(). Signed-off-by: Thierry Reding Acked-by: Simon Glass --- common/dlmalloc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/dlmalloc.c b/common/dlmalloc.c index d87834df67..991229d5f7 100644 --- a/common/dlmalloc.c +++ b/common/dlmalloc.c @@ -1533,6 +1533,9 @@ void mem_malloc_init(ulong start, ulong size) mem_malloc_end = start + size; mem_malloc_brk = start; + debug("using memory %#lx-%#lx for malloc()\n", mem_malloc_start, + mem_malloc_end); + memset((void *)mem_malloc_start, 0, size); malloc_bin_reloc(); -- 2.39.5