From: John Hodge Date: Mon, 17 Oct 2011 02:27:33 +0000 (+0800) Subject: Kernel/heap - Debug fixes X-Git-Tag: rel0.13~53 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=680c5d97a936963c62796dcae2d3a434a9a18ddf;p=tpg%2Facess2.git Kernel/heap - Debug fixes --- diff --git a/Kernel/heap.c b/Kernel/heap.c index 1a42e351..6915d348 100644 --- a/Kernel/heap.c +++ b/Kernel/heap.c @@ -520,8 +520,8 @@ void Heap_Dump(void) { foot = (void*)( (Uint)head + head->Size - sizeof(tHeapFoot) ); #if VERBOSE_DUMP - Log_Log("Heap", "%p (0x%P): 0x%08lx (%i) %4C", - head, MM_GetPhysAddr((Uint)head), head->Size, head->ValidSize, &head->Magic); + Log_Log("Heap", "%p (0x%P): 0x%08x (%i) %4C", + head, MM_GetPhysAddr((tVAddr)head), head->Size, head->ValidSize, &head->Magic); Log_Log("Heap", "%p %4C", foot->Head, &foot->Magic); if(head->File) { Log_Log("Heap", "%sowned by %s:%i", @@ -573,7 +573,7 @@ void Heap_Dump(void) Log_Log("Heap", "%p (%P): 0x%08lx %i %4C", head, MM_GetPhysAddr((Uint)head), head->Size, head->ValidSize, &head->Magic); if(foot) - Log_Log("Heap", "Foot %p = {Head:%p,Magic=:%4C}", foot, foot->Head, &foot->Magic); + Log_Log("Heap", "Foot %p = {Head:%p,Magic:%4C}", foot, foot->Head, &foot->Magic); if(head->File) { Log_Log("Heap", "%sowned by %s:%i", (head->Magic==MAGIC_FREE?"was ":""), head->File, head->Line);