diff options
author | Scott Warner <Tortel1210@gmail.com> | 2016-01-07 11:35:58 -0500 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-02-09 09:55:02 +0100 |
commit | 6bb500fcd8f9ffda0a2efed906e13712b761c430 (patch) | |
tree | 67a09e765aa508034448754f727823a19a968624 | |
parent | e52c27e171b199dc9c3a3a54351ead5a68ab91b6 (diff) | |
download | android_hardware_samsung_slsi_exynos5430-6bb500fcd8f9ffda0a2efed906e13712b761c430.tar.gz android_hardware_samsung_slsi_exynos5430-6bb500fcd8f9ffda0a2efed906e13712b761c430.tar.xz android_hardware_samsung_slsi_exynos5430-6bb500fcd8f9ffda0a2efed906e13712b761c430.zip |
gralloc: Only log non-null invalid pointers
This prevents the endless logspam of 0x0 pointers during animations such as
an indeterminate progress dialog
Change-Id: I986176800b2173a61e76a21af2caa47a728ba543
-rwxr-xr-x | include/gralloc_priv.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/gralloc_priv.h b/include/gralloc_priv.h index 6d13b88..59a08ad 100755 --- a/include/gralloc_priv.h +++ b/include/gralloc_priv.h @@ -182,7 +182,10 @@ 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; |