Merge "Fix stack trace logging in RefBase."

This commit is contained in:
Igor Murashkin 2014-04-01 22:52:03 +00:00 committed by Gerrit Code Review
commit dfdbb64ff7

View file

@ -109,7 +109,7 @@ public:
char inc = refs->ref >= 0 ? '+' : '-'; char inc = refs->ref >= 0 ? '+' : '-';
ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref);
#if DEBUG_REFS_CALLSTACK_ENABLED #if DEBUG_REFS_CALLSTACK_ENABLED
refs->stack.dump(LOG_TAG); refs->stack.log(LOG_TAG);
#endif #endif
refs = refs->next; refs = refs->next;
} }
@ -123,7 +123,7 @@ public:
char inc = refs->ref >= 0 ? '+' : '-'; char inc = refs->ref >= 0 ? '+' : '-';
ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref); ALOGD("\t%c ID %p (ref %d):", inc, refs->id, refs->ref);
#if DEBUG_REFS_CALLSTACK_ENABLED #if DEBUG_REFS_CALLSTACK_ENABLED
refs->stack.dump(LOG_TAG); refs->stack.log(LOG_TAG);
#endif #endif
refs = refs->next; refs = refs->next;
} }