summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-08-29 10:05:22 +0200
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-08-29 16:46:15 +0200
commit808a7fc04efb502494b0c8dc81dd143c0b652fc2 (patch)
treef75d4820376d43cf1959e163bb10a7718b1c4267 /src
parent8a92e6fc72a0d226bbf9ae6932386b08926b471e (diff)
libcamera: v4l2_device: Fix error messages in setControls()
The error messages are copied from getControls() without being updated for the set controls case, fix this. Fixes: eb068f4e67eedacd ("libcamera: v4l2_device: Implement get and set controls") Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Acked-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/v4l2_device.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp
index f8954661..349bf2d2 100644
--- a/src/libcamera/v4l2_device.cpp
+++ b/src/libcamera/v4l2_device.cpp
@@ -287,13 +287,13 @@ int V4L2Device::setControls(V4L2ControlList *ctrls)
/* Generic validation error. */
if (errorIdx == 0 || errorIdx >= count) {
- LOG(V4L2, Error) << "Unable to read controls: "
+ LOG(V4L2, Error) << "Unable to set controls: "
<< strerror(ret);
return -EINVAL;
}
/* A specific control failed. */
- LOG(V4L2, Error) << "Unable to read control " << errorIdx
+ LOG(V4L2, Error) << "Unable to set control " << errorIdx
<< ": " << strerror(ret);
count = errorIdx - 1;
ret = errorIdx;