summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-08-26 17:34:22 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2014-10-11 01:13:49 +0200
commit7a14fa1f2911d618f4c7b0f91355236b7b38d982 (patch)
tree938b6a35dd85942f2953787c8e9db557511f4bdb
parent6e1d96ff21cd2595db456b89d2a92fe17b341e01 (diff)
malloc: Output region when debugging
When DEBUG is set, output memory region used for malloc(). Signed-off-by: Thierry Reding <treding@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/dlmalloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index f9873393c1..3d6391e60a 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();