summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Warner <Tortel1210@gmail.com>2016-01-07 11:35:58 -0500
committerScott Warner <Tortel1210@gmail.com>2016-01-07 11:35:58 -0500
commit3ac2ff83d66f1abfdb23d695670e631206c19df9 (patch)
treefd1f2f3c640672c245dfaf6cc225c536530c528e
parent908dd85363b43c687bbe3fb654bdc5c324cf8b4a (diff)
downloadandroid_hardware_samsung_slsi_exynos5-staging/cm-14.0.tar.gz
android_hardware_samsung_slsi_exynos5-staging/cm-14.0.tar.bz2
android_hardware_samsung_slsi_exynos5-staging/cm-14.0.zip
This prevents the endless logspam of 0x0 pointers during animations such as an indeterminate progress dialog Change-Id: I986176800b2173a61e76a21af2caa47a728ba543
-rw-r--r--include/gralloc_priv.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/gralloc_priv.h b/include/gralloc_priv.h
index 416101c..14ffd3f 100644
--- a/include/gralloc_priv.h
+++ b/include/gralloc_priv.h
@@ -153,7 +153,11 @@ struct private_handle_t {
hnd->numInts + hnd->numFds != sNumInts + sNumFds ||
hnd->magic != sMagic)
{
- ALOGE("invalid gralloc handle (at %p)", reinterpret_cast<void *>(const_cast<native_handle *>(h)));
+ void *handle = reinterpret_cast<void *>(const_cast<native_handle *>(h));
+ if(handle != 0)
+ {
+ ALOGE("invalid gralloc handle (at %p)", handle);
+ }
return -EINVAL;
}
return 0;