[U-Boot] [PATCH v3 24/30] malloc: Output region when debugging

Simon Glass sjg at chromium.org
Thu Nov 13 02:27:10 CET 2014


From: Thierry Reding <treding at nvidia.com>

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

Signed-off-by: Thierry Reding <treding at nvidia.com>
Acked-by: Simon Glass <sjg at chromium.org>
Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v3: None

 common/dlmalloc.c | 3 +++
 1 file changed, 3 insertions(+)

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();
-- 
2.1.0.rc2.206.gedb03e5



More information about the U-Boot mailing list