git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4702647
)
malloc: Show amount of used space when memory runs out
author
Simon Glass
<sjg@chromium.org>
Thu, 19 Dec 2024 18:28:54 +0000
(11:28 -0700)
committer
Tom Rini
<trini@konsulko.com>
Fri, 27 Dec 2024 21:16:10 +0000
(15:16 -0600)
Show a bit more information when malloc() space is exhausted and
debugging is enabled.
Signed-off-by: Simon Glass <sjg@chromium.org>
common/malloc_simple.c
patch
|
blob
|
history
diff --git
a/common/malloc_simple.c
b/common/malloc_simple.c
index
5a8ec53
..
f0f90a0
100644
(file)
--- a/
common/malloc_simple.c
+++ b/
common/malloc_simple.c
@@
-26,7
+26,8
@@
static void *alloc_simple(size_t bytes, int align)
log_debug("size=%lx, ptr=%lx, limit=%x: ", (ulong)bytes, new_ptr,
gd->malloc_limit);
if (new_ptr > gd->malloc_limit) {
- log_err("alloc space exhausted\n");
+ log_err("alloc space exhausted ptr %lx limit %x\n", new_ptr,
+ gd->malloc_limit);
return NULL;
}