commit | 415c8c839d2f95154445faed82b93a1ced4545e0 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Thu Jan 12 22:00:00 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Jan 12 22:00:00 2023 +0000 |
tree | 7084bf390856124c2df40550900eab9063746aa7 | |
parent | 84b301bb103145e02cec45564e4e21028f0aeaa8 [diff] | |
parent | c24cf9dc4bb98bdcb4bab0b1d342274d2f7b6bb3 [diff] |
Merge "Log loudly when the binder driver returns an error" am: 38b7d0bdb8 am: c24cf9dc4b Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2381572 Change-Id: Ib74a86a747ded7a29ce5418e9b96ac229a675ce9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index 6d64e1e..da58251 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp
@@ -1221,6 +1221,10 @@ return NO_ERROR; } + ALOGE_IF(mProcess->mDriverFD >= 0, + "Driver returned error (%s). This is a bug in either libbinder or the driver. This " + "thread's connection to %s will no longer work.", + statusToString(err).c_str(), mProcess->mDriverName.c_str()); return err; }