Changeset 397 for soft/giet_vm/giet_libs/malloc.c
- Timestamp:
- Aug 12, 2014, 10:44:34 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/malloc.c
r394 r397 237 237 unsigned int y ) 238 238 { 239 240 #if GIET_DEBUG_MALLOC 241 giet_shr_printf("\n[MALLOC DEBUG] Malloc request for Heap[%d][%d] / size = %x\n", 242 x, y, size ); 243 #endif 244 239 245 // checking arguments 240 246 if (size == 0) … … 283 289 284 290 #if GIET_DEBUG_MALLOC 285 giet_shr_printf("\n[MALLOC DEBUG] Malloc for Heap[%d][%d] / size = %x / base= %x\n",286 x, y, size, base );291 giet_shr_printf("\n[MALLOC DEBUG] Malloc vaddr from Heap[%d][%d] = %x\n", 292 x, y, base ); 287 293 display_free_array(x,y); 288 294 #endif … … 376 382 giet_get_xy( ptr, &x, &y ); 377 383 384 #if GIET_DEBUG_MALLOC 385 giet_shr_printf("\n[MALLOC DEBUG] Free for vaddr = %x / x = %d / y = %d\n", 386 (unsigned int)ptr, x, y ); 387 #endif 388 378 389 // get the lock protecting heap[x][y] 379 390 lock_acquire( &heap[x][y].lock ); … … 407 418 408 419 #if GIET_DEBUG_MALLOC 409 giet_shr_printf("\n[MALLOC DEBUG] Free for Heap[%d][%d] / base = %x / size = %x\n",410 x, y, base, 1<<size_index );411 420 display_free_array(x,y); 412 421 #endif
Note: See TracChangeset
for help on using the changeset viewer.