From 8bcb503771d9f3bcd43ee664814a0cb921d5a369 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Wed, 7 Apr 2021 23:06:43 +0000 Subject: libbinder_ndk: add log to death rec. CHECK This would have saved a cycle to discover an issue with wp::fromExisting bug. Bug: N/A Test: N/A Change-Id: I321208cf0ef79bbd821510018c15e0c96dfa14ad --- libs/binder/ndk/ibinder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/binder/ndk/ibinder.cpp b/libs/binder/ndk/ibinder.cpp index 76afd4cc2c..883403ac59 100644 --- a/libs/binder/ndk/ibinder.cpp +++ b/libs/binder/ndk/ibinder.cpp @@ -363,7 +363,8 @@ const char* AIBinder_Class_getDescriptor(const AIBinder_Class* clazz) { } void AIBinder_DeathRecipient::TransferDeathRecipient::binderDied(const wp& who) { - CHECK(who == mWho); + CHECK(who == mWho) << who.unsafe_get() << "(" << who.get_refs() << ") vs " << mWho.unsafe_get() + << " (" << mWho.get_refs() << ")"; mOnDied(mCookie); -- cgit v1.2.3-59-g8ed1b