diff options
author | Zhijun He <zhijunhe@google.com> | 2018-04-06 18:44:42 -0700 |
---|---|---|
committer | Zhijun He <zhijunhe@google.com> | 2018-04-06 18:44:42 -0700 |
commit | 9b61e6197ef6bfe0b2b57d32f9c5e6f0f955f911 (patch) | |
tree | 805a58db90a1c1edceaa70451d6ba0273b375946 /camera | |
parent | 7f8caede5fde14f1a4601083c1523bd018ea6d81 (diff) | |
download | platform_hardware_interfaces-9b61e6197ef6bfe0b2b57d32f9c5e6f0f955f911.tar.gz platform_hardware_interfaces-9b61e6197ef6bfe0b2b57d32f9c5e6f0f955f911.tar.bz2 platform_hardware_interfaces-9b61e6197ef6bfe0b2b57d32f9c5e6f0f955f911.zip |
camera: print the oversized result size
It's generally a bad thing to have the result exploded to exceed
the shared message max depth (1MB). Print the size when such case
occurs for better debugging output.
Bug: 77665564
Change-Id: I971fca202aa3ca0fa1863e9c658659d0775a1ad4
Diffstat (limited to 'camera')
-rw-r--r-- | camera/device/3.2/default/CameraDeviceSession.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/camera/device/3.2/default/CameraDeviceSession.cpp b/camera/device/3.2/default/CameraDeviceSession.cpp index 5f89cde972..60a57cde9d 100644 --- a/camera/device/3.2/default/CameraDeviceSession.cpp +++ b/camera/device/3.2/default/CameraDeviceSession.cpp @@ -645,7 +645,10 @@ void CameraDeviceSession::ResultBatcher::invokeProcessCaptureResultCallback( result.fmqResultSize = result.result.size(); result.result.resize(0); } else { - ALOGW("%s: couldn't utilize fmq, fall back to hwbinder", __FUNCTION__); + ALOGW("%s: couldn't utilize fmq, fall back to hwbinder, result size: %zu," + "shared message queue available size: %zu", + __FUNCTION__, result.result.size(), + mResultMetadataQueue->availableToWrite()); result.fmqResultSize = 0; } } |