diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2020-09-01 19:37:00 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-09-01 19:37:00 +0000 |
commit | 8b3df297e86da8ca796f3604101c4ea975d04598 (patch) | |
tree | d116e56a0e245de1a5297684a238a0834e38c263 | |
parent | 9592c9d586e606d0d762b4334981159d2236295b (diff) | |
parent | 4447b46bb457d05b4685652b25d7c7e5103b2dd6 (diff) | |
download | native-8b3df297e86da8ca796f3604101c4ea975d04598.tar.gz |
Merge "libbinder_ndk: clarify error prune functions" am: 4447b46bb4
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1416528
Change-Id: I87781ff6e4c44c39827564d2c7b745bebdf2fe4c
-rw-r--r-- | libs/binder/ndk/status.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/binder/ndk/status.cpp b/libs/binder/ndk/status.cpp index 87e1341f36..d889593474 100644 --- a/libs/binder/ndk/status.cpp +++ b/libs/binder/ndk/status.cpp @@ -123,8 +123,8 @@ binder_status_t PruneStatusT(status_t status) { return STATUS_UNKNOWN_ERROR; default: - LOG(WARNING) << __func__ - << ": Unknown status_t pruned into STATUS_UNKNOWN_ERROR: " << status; + LOG(WARNING) << __func__ << ": Unknown status_t (" << status + << ") pruned into STATUS_UNKNOWN_ERROR"; return STATUS_UNKNOWN_ERROR; } } @@ -155,8 +155,8 @@ binder_exception_t PruneException(int32_t exception) { return EX_TRANSACTION_FAILED; default: - LOG(WARNING) << __func__ - << ": Unknown status_t pruned into EX_TRANSACTION_FAILED: " << exception; + LOG(WARNING) << __func__ << ": Unknown binder exception (" << exception + << ") pruned into EX_TRANSACTION_FAILED"; return EX_TRANSACTION_FAILED; } } |