From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Sat, 8 Nov 2014 09:31:37 +0100 Subject: [U-Boot] [PATCH v2 34/40] malloc: Output region when debugging In-Reply-To: <1409067268-956-35-git-send-email-thierry.reding@gmail.com> References: <1409067268-956-1-git-send-email-thierry.reding@gmail.com> <1409067268-956-35-git-send-email-thierry.reding@gmail.com> Message-ID: <20141108093137.3fb203cc@lilith> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Thierry, On Tue, 26 Aug 2014 17:34:22 +0200, Thierry Reding wrote: > From: Thierry Reding > > When DEBUG is set, output memory region used for malloc(). > > Signed-off-by: Thierry Reding > --- > common/dlmalloc.c | 3 +++ > 1 file changed, 3 insertions(+) > > 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(); > -- > 2.0.4 > Applied to u-boot-arm/master, thanks! Amicalement, -- Albert.