git.ucc.asn.au
/
tpg
/
acess2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5df969a
)
Kernel - Updated free's error checking to print the return addr
author
John Hodge
<
[email protected]
>
Thu, 20 Oct 2011 13:12:31 +0000
(21:12 +0800)
committer
John Hodge
<
[email protected]
>
Thu, 20 Oct 2011 13:12:31 +0000
(21:12 +0800)
Kernel/heap.c
patch
|
blob
|
history
diff --git
a/Kernel/heap.c
b/Kernel/heap.c
index
6915d34
..
e53f5b8
100644
(file)
--- a/
Kernel/heap.c
+++ b/
Kernel/heap.c
@@
-310,8
+310,8
@@
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 (%p < %p < %p)\n",
- gHeapStart, Ptr, gHeapEnd);
+ Log_Warning("Heap", "free - Passed a non-heap address
by %p
(%p < %p < %p)\n",
+
__builtin_return_address(0),
gHeapStart, Ptr, gHeapEnd);
return;
}
UCC
git Repository :: git.ucc.asn.au