diff options
author | Scott Warner <Tortel1210@gmail.com> | 2016-01-07 11:35:58 -0500 |
---|---|---|
committer | Scott Warner <Tortel1210@gmail.com> | 2016-01-07 11:35:58 -0500 |
commit | 3ac2ff83d66f1abfdb23d695670e631206c19df9 (patch) | |
tree | fd1f2f3c640672c245dfaf6cc225c536530c528e | |
parent | 908dd85363b43c687bbe3fb654bdc5c324cf8b4a (diff) | |
download | android_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 |
Only log non-null invalid pointersHEADreplicant-6.0-0004-transitionreplicant-6.0-0004-rc6replicant-6.0-0004-rc5-transitionreplicant-6.0-0004-rc5replicant-6.0-0004-rc4replicant-6.0-0004-rc3replicant-6.0-0004-rc2replicant-6.0-0004-rc1replicant-6.0-0004replicant-6.0-0003replicant-6.0-0002replicant-6.0-0001staging/cm-14.0stable/cm-13.0-ZNH5Ystable/cm-13.0-ZNH2KBstable/cm-13.0-ZNH2Kstable/cm-13.0-ZNH0Ecm-14.0cm-13.0
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.h | 6 |
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; |