Kernel/Heap - Debugging change (dump paddr of bad value)
authorJohn Hodge <[email protected]>
Sat, 14 Jul 2012 09:49:45 +0000 (17:49 +0800)
committerJohn Hodge <[email protected]>
Sat, 14 Jul 2012 09:49:45 +0000 (17:49 +0800)
KernelLand/Kernel/heap.c

index eefd13c..cb94d87 100644 (file)
@@ -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;

UCC git Repository :: git.ucc.asn.au