[libcamera-devel] [PATCH] libcamera: v4l2_device: Report device node on failure
Kieran Bingham
kieran.bingham at ideasonboard.com
Sat Sep 3 13:50:42 CEST 2022
When the V4L2Device fails to open, it is not clear what device
caused the failure. The Entity name is presented, but not the device
node.
Provide it.
Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
src/libcamera/v4l2_device.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp
index 1d899657bf7d..29a800a5cee3 100644
--- a/src/libcamera/v4l2_device.cpp
+++ b/src/libcamera/v4l2_device.cpp
@@ -90,6 +90,7 @@ int V4L2Device::open(unsigned int flags)
if (!fd.isValid()) {
int ret = -errno;
LOG(V4L2, Error) << "Failed to open V4L2 device: "
+ << deviceNode_ << ": "
<< strerror(-ret);
return ret;
}
--
2.34.1
More information about the libcamera-devel
mailing list