[libcamera-devel] [PATCH v2 9/9] android: camera_device: Report an error in notifyError()
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Fri Jul 3 02:38:38 CEST 2020
Hi Kieran,
Thank you for the patch.
On Thu, Jul 02, 2020 at 10:36:54PM +0100, Kieran Bingham wrote:
> If an error is generated, try to be verbose about it in the libcamera logs.
>
> Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
> ---
> src/android/camera_device.cpp | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp
> index 4681fd8af90b..5a3b4dfae6a0 100644
> --- a/src/android/camera_device.cpp
> +++ b/src/android/camera_device.cpp
> @@ -1192,6 +1192,9 @@ void CameraDevice::notifyError(uint32_t frameNumber, camera3_stream_t *stream)
> {
> camera3_notify_msg_t notify = {};
>
> + LOG(HAL, Error) << "Error occured on frame " << frameNumber
> + << toPixelFormat(stream->format);
The frame number and the pixel format will be concatenated without a
space. Wouldn't it also make sense to print the stream number instead of
the format ? There could be multiple streams using the same format.
> +
> notify.type = CAMERA3_MSG_ERROR;
> notify.message.error.error_stream = stream;
> notify.message.error.frame_number = frameNumber;
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list