Improved printouts so that addref/release tracing always shows the old/new refcnts in decimal instead of old in decimal and new in hex

This commit is contained in:
kipp%netscape.com 1999-10-05 23:56:33 +00:00
Родитель 5e6bf6fc1f
Коммит 3264d673a9
1 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -399,10 +399,16 @@ char* typeFromLog[] = {
void leaky::dumpEntryToLog(malloc_log_entry* lep)
{
printf("%-10s %08lx %5ld %08lx (%ld)-->",
printf("%-10s %08lx %5ld ",
typeFromLog[lep->type],
lep->address, lep->size, lep->oldaddress,
lep->numpcs);
lep->address, lep->size);
if (IsRefcnt(lep)) {
printf("%08ld", lep->oldaddress);
}
else {
printf("%08lx", lep->oldaddress);
}
printf(" (%ld)-->", lep->numpcs);
displayStackTrace(stdout, lep);
}