diff mbox

[U-Boot,3/9] malloc: Output region when debugging

Message ID 1408348852-30894-4-git-send-email-thierry.reding@gmail.com
State Superseded
Delegated to: Albert ARIBAUD
Headers show

Commit Message

Thierry Reding Aug. 18, 2014, 8 a.m. UTC
From: Thierry Reding <treding@nvidia.com>

When DEBUG is set, output memory region used for malloc().

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 common/dlmalloc.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index f9873393c183..3d6391e60acf 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();