diff options
author | 2020-04-17 18:46:55 +0000 | |
---|---|---|
committer | 2020-04-17 18:46:55 +0000 | |
commit | c7e949b743fc1bc50dbaa0be22d893d57c34bdf1 (patch) | |
tree | e93bb959f7c433ad1b75ef01bd1f7a38fe18e590 | |
parent | 91c72e791670f4a54b7a00e0544414690c09a3a3 (diff) | |
parent | b077deb700bfaf1209baf9ecfd7d03a0dc12f054 (diff) |
Merge "libbinder: driver unfinished write error code"
-rw-r--r-- | libs/binder/IPCThreadState.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index 9e89c57da3..d67ce15ca9 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -997,7 +997,11 @@ status_t IPCThreadState::talkWithDriver(bool doReceive) if (err >= NO_ERROR) { if (bwr.write_consumed > 0) { if (bwr.write_consumed < mOut.dataSize()) - LOG_ALWAYS_FATAL("Driver did not consume write buffer"); + LOG_ALWAYS_FATAL("Driver did not consume write buffer. " + "err: %s consumed: %zu of %zu", + statusToString(err).c_str(), + (size_t)bwr.write_consumed, + mOut.dataSize()); else { mOut.setDataSize(0); processPostWriteDerefs(); |