diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-04-12 11:45:36 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-04-28 08:04:59 +0200 |
commit | 1ce56a21a040ffdc9415d1d42174e916341d2be3 (patch) | |
tree | cd00f3beaa18d51613800fe79562812253795700 /common/dummy_malloc.c | |
parent | bd3b279d0d5bc3aa8593066d302ca025aed81de0 (diff) | |
download | barebox-1ce56a21a040ffdc9415d1d42174e916341d2be3.tar.gz barebox-1ce56a21a040ffdc9415d1d42174e916341d2be3.tar.xz |
xfuncs: Be more informative when out of memory panic occurs
When one of the xfuncs panics we can be a bit more informative. We
can at least print the amount of bytes we wanted to allocate and
how much memory we have left.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/dummy_malloc.c')
-rw-r--r-- | common/dummy_malloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/dummy_malloc.c b/common/dummy_malloc.c index dd36a5b156..641baa125a 100644 --- a/common/dummy_malloc.c +++ b/common/dummy_malloc.c @@ -24,6 +24,10 @@ #include <common.h> #include <malloc.h> +void malloc_stats(void) +{ +} + void *memalign(size_t alignment, size_t bytes) { unsigned long mem = (unsigned long)sbrk(bytes + alignment); |