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>
This commit is contained in:
parent
98bd9cb8c9
commit
0a443b589b
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue