diff options
author | Erik Wolsheimer <ewol@google.com> | 2015-11-13 11:54:47 -0800 |
---|---|---|
committer | Erik Wolsheimer <ewol@google.com> | 2015-11-16 10:29:20 -0800 |
commit | 211abad3b92b70dd094949c79f67e686c940fa0c (patch) | |
tree | 282381dde651d22dcde5fce480b1b071bfe867ed /core | |
parent | 83d65fea01c4233c80161acdd69b64fa559c3749 (diff) | |
download | frameworks_base-211abad3b92b70dd094949c79f67e686c940fa0c.zip frameworks_base-211abad3b92b70dd094949c79f67e686c940fa0c.tar.gz frameworks_base-211abad3b92b70dd094949c79f67e686c940fa0c.tar.bz2 |
Log errno when dup fd cannot be allocated
BUG: 25165471
Change-Id: I7342e2b4c566325fc2e15643a7c7b6ba989ee8c7
Diffstat (limited to 'core')
-rwxr-xr-x | core/jni/android/graphics/Bitmap.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/jni/android/graphics/Bitmap.cpp b/core/jni/android/graphics/Bitmap.cpp index 6cbdeaa..f5fe086 100755 --- a/core/jni/android/graphics/Bitmap.cpp +++ b/core/jni/android/graphics/Bitmap.cpp @@ -1006,6 +1006,7 @@ static jobject Bitmap_createFromParcel(JNIEnv* env, jobject, jobject parcel) { // is disposed. int dupFd = dup(blob.fd()); if (dupFd < 0) { + ALOGE("Error allocating dup fd. Error:%d", errno); blob.release(); SkSafeUnref(ctable); doThrowRE(env, "Could not allocate dup blob fd."); |