From: John Hodge Date: Sat, 14 Jul 2012 09:49:45 +0000 (+0800) Subject: Kernel/Heap - Debugging change (dump paddr of bad value) X-Git-Tag: rel0.15~611^2~37 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=5f3eb0c8157fd9329e7cc7672f9ed2809947574a;p=tpg%2Facess2.git Kernel/Heap - Debugging change (dump paddr of bad value) --- diff --git a/KernelLand/Kernel/heap.c b/KernelLand/Kernel/heap.c index eefd13cf..cb94d876 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;