Index: uspace/lib/libc/malloc/malloc.c
===================================================================
--- uspace/lib/libc/malloc/malloc.c	(revision 00acd66d3981789b3f8b04cdd854d29343dd9aa0)
+++ uspace/lib/libc/malloc/malloc.c	(revision 75dd55d7399a17f1fe7b170fd0d79e0eed7158c2)
@@ -1,2 +1,4 @@
+#include <stdio.h>
+#include <libc.h>
 /*
   This is a version (aka dlmalloc) of malloc/free/realloc written by
@@ -473,6 +475,10 @@
 #endif
 
-#define FOOTERS 0
-#define ABORT  abort()
+#define FOOTERS 0 
+#define ABORT  \
+{ \
+	DEBUG("%s abort in %s on line %d\n", __FILE__, __func__, __LINE__); \
+	abort(); \
+}
 #define ABORT_ON_ASSERT_FAILURE 1
 #define PROCEED_ON_ERROR 0
@@ -552,5 +558,5 @@
 #ifdef DEBUG
 #if ABORT_ON_ASSERT_FAILURE
-#define assert(x) {if(!(x)) {printf(#x);ABORT;}}
+#define assert(x) {if(!(x)) {DEBUG(#x);ABORT;}}
 #else /* ABORT_ON_ASSERT_FAILURE */
 #include <assert.h>
