if(head->Size == Bytes) {
head->Magic = MAGIC_USED;
RELEASE(&giHeapSpinlock); // Release spinlock
- LOG("RETURN %p", best->Data);
+ LOG("RETURN %p, to %p", best->Data, __builtin_return_address(0));
return best->Data;
}
// Check size
if(best->Size == Bytes) {
RELEASE(&giHeapSpinlock); // Release spinlock
- LOG("RETURN %p", best->Data);
+ LOG("RETURN %p, to %p", best->Data, __builtin_return_address(0));
return best->Data;
}
}
best->Magic = MAGIC_USED; // Mark block as used
RELEASE(&giHeapSpinlock); // Release spinlock
- LOG("RETURN %p", best->Data);
+ LOG("RETURN %p, to %p", best->Data, __builtin_return_address(0));
return best->Data;
}