summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-08-26 17:34:22 +0200
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2014-11-12 07:25:42 +0100
commit868de51ddee75d65f3ca4235f97900410f424def (patch)
tree37a8b76db43b6c4f5172d126c803717f166195cb
parent25026fa9f16dd5f9182b47f76ce5043cb35da3f4 (diff)
downloadu-boot-imx-868de51ddee75d65f3ca4235f97900410f424def.zip
u-boot-imx-868de51ddee75d65f3ca4235f97900410f424def.tar.gz
u-boot-imx-868de51ddee75d65f3ca4235f97900410f424def.tar.bz2
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 d87834d..991229d 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();