summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2019-02-12 14:58:54 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2019-02-13 15:43:55 +0000
commit8cdc3148adb75e7854e8a1756de6095d8faf1656 (patch)
tree7991249f69ed0293713dc8146cb507020dd48873
parent0a443b589bfac5b726c1beaef047e59a6f0b3841 (diff)
libcamera: v4l2_subdevice: Fix LOG usage
Add the V4L2Subdev category to the last LOG() call requiring it. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--src/libcamera/v4l2_subdevice.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcamera/v4l2_subdevice.cpp b/src/libcamera/v4l2_subdevice.cpp
index 1d5b1111..17f715fe 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;
}