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 <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user