This prevents the endless logspam of 0x0 pointers during animations such as
an indeterminate progress dialog
Change-Id: I986176800b2173a61e76a21af2caa47a728ba543
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;