X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fheap.c;h=9e29145072e0838e0391107af4e596a3bbd7cb8d;hb=4c76c235551f3f936a20b17cfe727578644493f1;hp=eefd13cf22e6c690e65fcd9702c05846018cdd92;hpb=48743e39650eb1ef988380e9d95f27fd40d3a9ce;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/heap.c b/KernelLand/Kernel/heap.c index eefd13cf..9e291450 100644 --- a/KernelLand/Kernel/heap.c +++ b/KernelLand/Kernel/heap.c @@ -182,7 +182,8 @@ void *Heap_Allocate(const char *File, int Line, size_t __Bytes) #endif Mutex_Release(&glHeap); // Release spinlock #if WARNINGS - Log_Warning("Heap", "Size of heap address %p is invalid not aligned (0x%x)", head, head->Size); + Log_Warning("Heap", "Size of heap address %p is invalid - not aligned (0x%x) [at paddr 0x%x]", + head, head->Size, MM_GetPhysAddr(&head->Size)); Heap_Dump(); #endif return NULL; @@ -307,7 +308,7 @@ void Heap_Deallocate(void *Ptr) // Sanity check if((Uint)Ptr < (Uint)gHeapStart || (Uint)Ptr > (Uint)gHeapEnd) { - Log_Warning("Heap", "free - Passed a non-heap address by %p (%p < %p < %p)\n", + Log_Warning("Heap", "free - Passed a non-heap address by %p (%p < %p < %p)", __builtin_return_address(0), gHeapStart, Ptr, gHeapEnd); return; }