diff options
Diffstat (limited to 'include/gralloc_priv.h')
-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; |