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>
master
Thierry Reding 10 years ago committed by Albert ARIBAUD
parent 25026fa9f1
commit 868de51dde
  1. 3
      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();

Loading…
Cancel
Save