[libcamera-devel,2/3] libcamera: v4l2_subdevice: Fix LOG usage

Message ID 20190213122035.25309-3-kieran.bingham@ideasonboard.com
State Accepted
Commit 8cdc3148adb75e7854e8a1756de6095d8faf1656
Headers show
Series
  • Fix LOG usage
Related show

Commit Message

Kieran Bingham Feb. 13, 2019, 12:20 p.m. UTC
Add the V4L2Subdev category to the last LOG() call requiring it.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 src/libcamera/v4l2_subdevice.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

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;
 	}