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>
This commit is contained in:
parent
25026fa9f1
commit
868de51dde
@ -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…
Reference in New Issue
Block a user