[libcamera-devel] [PATCH] libcamera: v4l2_device: Increase error level for unsupported devices
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Fri May 3 19:09:04 CEST 2019
Hi Kieran,
Thank you for the patch.
On Fri, May 03, 2019 at 04:37:07PM +0100, Kieran Bingham wrote:
> If a component tries to open an unsupported device type, no error is presented
> unless debug is enabled.
>
> Report an error if an unsupported device type is opened to ease pipeline
> development.
I think there's little reason for a pipeline handler to try and open an
unsupported device type, so
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
But if anyone can think of a use case, please say so.
> Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
> ---
> src/libcamera/v4l2_device.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp
> index e22323de19c3..8366ffc4db55 100644
> --- a/src/libcamera/v4l2_device.cpp
> +++ b/src/libcamera/v4l2_device.cpp
> @@ -349,7 +349,7 @@ int V4L2Device::open()
> fdEvent_ = new EventNotifier(fd_, EventNotifier::Read);
> bufferType_ = V4L2_BUF_TYPE_META_CAPTURE;
> } else {
> - LOG(V4L2, Debug) << "Device is not a supported type";
> + LOG(V4L2, Error) << "Device is not a supported type";
> return -EINVAL;
> }
>
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list