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/dlmalloc.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/dlmalloc.c')
-rw-r--r-- | common/dlmalloc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/common/dlmalloc.c b/common/dlmalloc.c index 499ec93c28..9c33cc2c95 100644 --- a/common/dlmalloc.c +++ b/common/dlmalloc.c @@ -1753,7 +1753,6 @@ void *calloc(size_t n, size_t elem_size) /* Utility to update current_mallinfo for malloc_stats and mallinfo() */ -#ifdef CONFIG_CMD_MEMINFO static void malloc_update_mallinfo(void) { int i; @@ -1821,8 +1820,6 @@ void malloc_stats(void) #endif } -#endif /* CONFIG_CMD_MEMINFO */ - /* History: |