diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2019-04-22 12:19:46 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2019-05-03 18:49:38 +0100 |
commit | 05ff3d56e04a33756a679d24fe5542e9e50935b4 (patch) | |
tree | f592ed395f503119b7f481a701af76344c7a3692 | |
parent | 19f9b90542b84dcc6142659f19a7f2a0f6a9c411 (diff) |
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>
-rw-r--r-- | src/libcamera/v4l2_device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |