[libcamera-devel] [PATCH 2/3] libcamera: v4l2_subdevice: Fix LOG usage
Kieran Bingham
kieran.bingham at ideasonboard.com
Wed Feb 13 13:20:34 CET 2019
Add the V4L2Subdev category to the last LOG() call requiring it.
Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
src/libcamera/v4l2_subdevice.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/libcamera/v4l2_subdevice.cpp b/src/libcamera/v4l2_subdevice.cpp
index 1d5b11115dbb..17f715fe707a 100644
--- a/src/libcamera/v4l2_subdevice.cpp
+++ b/src/libcamera/v4l2_subdevice.cpp
@@ -223,7 +223,8 @@ int V4L2Subdevice::setFormat(unsigned int pad, V4L2SubdeviceFormat *format)
int ret = ioctl(fd_, VIDIOC_SUBDEV_S_FMT, &subdevFmt);
if (ret) {
ret = -errno;
- LOG(Error) << "Unable to set format: " << strerror(-ret);
+ LOG(V4L2Subdev, Error)
+ << "Unable to set format: " << strerror(-ret);
return ret;
}
--
2.19.1
More information about the libcamera-devel
mailing list