summaryrefslogtreecommitdiffstats
path: root/libs/binder
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2014-05-05 17:33:01 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-05-05 17:33:01 +0000
commit13de7f1defd259f41da9d1044c8aec779c60c1c4 (patch)
tree9af8504f2688b4fb48ecf6629c84b44cd9fc165f /libs/binder
parent98e1ebc026726ba045cea69b1b8c371d95db9893 (diff)
parent57fdbbda2c475d2abdd828177f942ddb6d164bef (diff)
downloadframeworks_native-13de7f1defd259f41da9d1044c8aec779c60c1c4.zip
frameworks_native-13de7f1defd259f41da9d1044c8aec779c60c1c4.tar.gz
frameworks_native-13de7f1defd259f41da9d1044c8aec779c60c1c4.tar.bz2
am 57fdbbda: am 4314ccd1: am 70278fbf: Merge "Add error message for hints when exceptions occur during binder transactions."
* commit '57fdbbda2c475d2abdd828177f942ddb6d164bef': Add error message for hints when exceptions occur during binder transactions.
Diffstat (limited to 'libs/binder')
-rw-r--r--libs/binder/Parcel.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp
index 4298522..52fff82 100644
--- a/libs/binder/Parcel.cpp
+++ b/libs/binder/Parcel.cpp
@@ -25,6 +25,7 @@
#include <binder/ProcessState.h>
#include <binder/TextOutput.h>
+#include <errno.h>
#include <utils/Debug.h>
#include <utils/Log.h>
#include <utils/String8.h>
@@ -1284,7 +1285,11 @@ status_t Parcel::read(FlattenableHelperInterface& val) const
status_t err = NO_ERROR;
for (size_t i=0 ; i<fd_count && err==NO_ERROR ; i++) {
fds[i] = dup(this->readFileDescriptor());
- if (fds[i] < 0) err = BAD_VALUE;
+ if (fds[i] < 0) {
+ err = BAD_VALUE;
+ ALOGE("dup() failed in Parcel::read, i is %d, fds[i] is %d, fd_count is %d, error: %s",
+ i, fds[i], fd_count, strerror(errno));
+ }
}
if (err == NO_ERROR) {