Browse Source

Add an explicit failure debug message

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
51feeab445
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/core/malloc.c

+ 2
- 0
src/core/malloc.c View File

@@ -123,6 +123,8 @@ void * alloc_memblock ( size_t size, size_t align ) {
123 123
 			return block;
124 124
 		}
125 125
 	}
126
+
127
+	DBG ( "Failed to allocate %z (aligned %zx)\n", size, align );
126 128
 	return NULL;
127 129
 }
128 130
 

Loading…
Cancel
Save