mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
Core, uppsrc: Logging refactored
git-svn-id: svn://ultimatepp.org/upp/trunk@5093 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
47ed4e89d8
commit
f10aabc3c4
18 changed files with 581 additions and 502 deletions
|
|
@ -166,14 +166,11 @@ void MemoryDumpLeaks()
|
|||
bool leaks = false;
|
||||
while(p != &dbg_live) {
|
||||
if(p->serial) {
|
||||
if(!leaks) {
|
||||
BugLog() << "\n\nHeap leaks detected:\n";
|
||||
if(!leaks)
|
||||
VppLog() << "\n\nHeap leaks detected:\n";
|
||||
}
|
||||
leaks = true;
|
||||
char b[100];
|
||||
DbgFormat(b, p);
|
||||
BugLog() << '\n' << b;
|
||||
VppLog() << '\n' << b << ": ";
|
||||
HexDump(VppLog(), p + 1, (int)(uintptr_t)p->size, 64);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue