From 05ff3d56e04a33756a679d24fe5542e9e50935b4 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Mon, 22 Apr 2019 12:19:46 +0100 Subject: libcamera: v4l2_device: Increase error level for unsupported devices 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. Reviewed-by: Laurent Pinchart Signed-off-by: Kieran Bingham --- src/libcamera/v4l2_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp index e22323de..8366ffc4 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; } -- cgit v1.2.1