"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

malloc: Show amount of used space when memory runs out

Show a bit more information when malloc() space is exhausted and
debugging is enabled.

Signed-off-by: Simon Glass <sjg@chromium.org>

authored by

Simon Glass and committed by
Tom Rini
c44c83f1 47026475

+2 -1
+2 -1
common/malloc_simple.c
··· 26 26 log_debug("size=%lx, ptr=%lx, limit=%x: ", (ulong)bytes, new_ptr, 27 27 gd->malloc_limit); 28 28 if (new_ptr > gd->malloc_limit) { 29 - log_err("alloc space exhausted\n"); 29 + log_err("alloc space exhausted ptr %lx limit %x\n", new_ptr, 30 + gd->malloc_limit); 30 31 return NULL; 31 32 } 32 33