diff --git a/src/system/boot/loader/heap.cpp b/src/system/boot/loader/heap.cpp index dcf32696df..5632bc9b96 100644 --- a/src/system/boot/loader/heap.cpp +++ b/src/system/boot/loader/heap.cpp @@ -464,7 +464,8 @@ malloc(size_t size) return malloc_large(size); if (size > sAvailable) { - dprintf("malloc(): Out of memory!\n"); + dprintf("malloc(): Out of memory allocating a block of %ld bytes, " + "only %ld left!\n", size, sAvailable); return NULL; } @@ -473,7 +474,8 @@ malloc(size_t size) if (chunk == NULL) { // could not find a free chunk as large as needed - dprintf("malloc(): Out of memory!\n"); + dprintf("malloc(): Out of memory allocating a block of %ld bytes, " + "no free chunks!\n", size); return NULL; }