summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2019-02-12 14:37:28 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2019-02-13 15:43:27 +0000
commit0a443b589bfac5b726c1beaef047e59a6f0b3841 (patch)
tree6ff705c99e5cbae4e6dc78a06ed583d19ce1641e /src
parent98bd9cb8c9f370c977dc3b6cc14f3d1ebfd24563 (diff)
libcamera: v4l2_device: Fix LOG usage
Add the V4L2 category to the LOG() statements. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/v4l2_device.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp
index 23c0da29..e9709906 100644
--- a/src/libcamera/v4l2_device.cpp
+++ b/src/libcamera/v4l2_device.cpp
@@ -390,7 +390,7 @@ int V4L2Device::getFormatSingleplane(V4L2DeviceFormat *format)
ret = ioctl(fd_, VIDIOC_G_FMT, &v4l2Format);
if (ret) {
ret = -errno;
- LOG(Error) << "Unable to get format: " << strerror(-ret);
+ LOG(V4L2, Error) << "Unable to get format: " << strerror(-ret);
return ret;
}
@@ -419,7 +419,7 @@ int V4L2Device::setFormatSingleplane(V4L2DeviceFormat *format)
ret = ioctl(fd_, VIDIOC_S_FMT, &v4l2Format);
if (ret) {
ret = -errno;
- LOG(Error) << "Unable to set format: " << strerror(-ret);
+ LOG(V4L2, Error) << "Unable to set format: " << strerror(-ret);
return ret;
}
@@ -447,7 +447,7 @@ int V4L2Device::getFormatMultiplane(V4L2DeviceFormat *format)
ret = ioctl(fd_, VIDIOC_G_FMT, &v4l2Format);
if (ret) {
ret = -errno;
- LOG(Error) << "Unable to get format: " << strerror(-ret);
+ LOG(V4L2, Error) << "Unable to get format: " << strerror(-ret);
return ret;
}
@@ -484,7 +484,7 @@ int V4L2Device::setFormatMultiplane(V4L2DeviceFormat *format)
ret = ioctl(fd_, VIDIOC_S_FMT, &v4l2Format);
if (ret) {
ret = -errno;
- LOG(Error) << "Unable to set format: " << strerror(-ret);
+ LOG(V4L2, Error) << "Unable to set format: " << strerror(-ret);
return ret;
}