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:
Kieran Bingham 2019-04-22 12:19:46 +01:00
parent 19f9b90542
commit 05ff3d56e0

View file

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