Core, uppsrc: Logging refactored

git-svn-id: svn://ultimatepp.org/upp/trunk@5093 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-07-02 15:23:59 +00:00
commit f10aabc3c4
18 changed files with 581 additions and 502 deletions

View file

@ -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);
}