From ddac83a516e939b55f20b226365596760159c9df Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Thu, 19 Nov 2009 13:08:17 -0800 Subject: Fix extended logging for object dumping. --- libs/rs/rsObjectBase.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/libs/rs/rsObjectBase.cpp b/libs/rs/rsObjectBase.cpp index 05791cb..89c5b00 100644 --- a/libs/rs/rsObjectBase.cpp +++ b/libs/rs/rsObjectBase.cpp @@ -182,23 +182,17 @@ void ObjectBase::zeroAllUserRef(Context *rsc) if (rsc->props.mLogObjects) { LOGV("Objects remaining."); - o = rsc->mObjHead; - while (o) { - o->dumpLOGV(" "); - o = o->mNext; - } + dumpAll(rsc); } } void ObjectBase::dumpAll(Context *rsc) { - if (rsc->props.mLogObjects) { - LOGV("Dumping all objects"); - const ObjectBase * o = rsc->mObjHead; - while (o) { - o->dumpLOGV(" "); - o = o->mNext; - } + LOGV("Dumping all objects"); + const ObjectBase * o = rsc->mObjHead; + while (o) { + o->dumpLOGV(" "); + o = o->mNext; } } -- cgit v1.1