projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25026fa
)
malloc: Output region when debugging
author
Thierry Reding
<treding@nvidia.com>
Tue, 26 Aug 2014 15:34:22 +0000
(17:34 +0200)
committer
Albert 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
patch
|
blob
|
history
diff --git
a/common/dlmalloc.c
b/common/dlmalloc.c
index d87834df67f4f94d6f71951be8880e80a28fb904..991229d5f788f6d85b77833122b8fa2b65102ae1 100644
(file)
--- 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();