From 1ce56a21a040ffdc9415d1d42174e916341d2be3 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 12 Apr 2017 11:45:36 +0200 Subject: 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 --- common/dummy_malloc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/dummy_malloc.c') 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 #include +void malloc_stats(void) +{ +} + void *memalign(size_t alignment, size_t bytes) { unsigned long mem = (unsigned long)sbrk(bytes + alignment); -- cgit v1.2.3