[libcamera-devel] [PATCH] libcamera: v4l2_device: Increase error level for unsupported devices

Kieran Bingham kieran.bingham at ideasonboard.com
Fri May 3 17:37:07 CEST 2019


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.

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;
 	}
 
-- 
2.20.1



More information about the libcamera-devel mailing list