Index: /soft/giet_vm/giet_libs/malloc.c
===================================================================
--- /soft/giet_vm/giet_libs/malloc.c	(revision 396)
+++ /soft/giet_vm/giet_libs/malloc.c	(revision 397)
@@ -237,4 +237,10 @@
                       unsigned int y ) 
 {
+
+#if GIET_DEBUG_MALLOC
+giet_shr_printf("\n[MALLOC DEBUG] Malloc request for Heap[%d][%d] / size = %x\n", 
+                 x, y, size );
+#endif
+
     // checking arguments
     if (size == 0) 
@@ -283,6 +289,6 @@
  
 #if GIET_DEBUG_MALLOC
-giet_shr_printf("\n[MALLOC DEBUG] Malloc for Heap[%d][%d] / size = %x / base = %x\n", 
-                 x, y, size, base );
+giet_shr_printf("\n[MALLOC DEBUG] Malloc vaddr from Heap[%d][%d] = %x\n", 
+                x, y, base );
 display_free_array(x,y);
 #endif
@@ -376,4 +382,9 @@
     giet_get_xy( ptr, &x, &y );
 
+#if GIET_DEBUG_MALLOC
+giet_shr_printf("\n[MALLOC DEBUG] Free for vaddr = %x / x = %d / y = %d\n",
+                 (unsigned int)ptr, x, y );
+#endif
+
     // get the lock protecting heap[x][y]
     lock_acquire( &heap[x][y].lock );
@@ -407,6 +418,4 @@
 
 #if GIET_DEBUG_MALLOC
-giet_shr_printf("\n[MALLOC DEBUG] Free for Heap[%d][%d] / base = %x / size = %x\n",
-                 x, y, base, 1<<size_index );
 display_free_array(x,y);
 #endif
