]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
malloc: Output region when debugging
authorThierry Reding <treding@nvidia.com>
Tue, 26 Aug 2014 15:34:22 +0000 (17:34 +0200)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Wed, 12 Nov 2014 06:25:42 +0000 (07:25 +0100)
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>
common/dlmalloc.c

index d87834df67f4f94d6f71951be8880e80a28fb904..991229d5f788f6d85b77833122b8fa2b65102ae1 100644 (file)
@@ -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();