From 808a7fc04efb502494b0c8dc81dd143c0b652fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Date: Thu, 29 Aug 2019 10:05:22 +0200 Subject: libcamera: v4l2_device: Fix error messages in setControls() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Acked-by: Jacopo Mondi Reviewed-by: Kieran Bingham --- src/libcamera/v4l2_device.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.1