summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2019-04-27 02:22:06 +0200
committerKieran Bingham <kieran.bingham@ideasonboard.com>2019-04-27 15:59:59 +0200
commitc34e09d33a6d81e1bbe818a8e652e0c60de50982 (patch)
treeab5e5c8fdb4f3fafe7ed3ba2b927e19d7cb26e8d
parent2ab299a27686776d45699c7cea6ba9ce4af6d514 (diff)
libcamera: v4l2_device: Prefix V4L2 direction in log messages
The V4L2Device will use the same deviceNode for two directions in the case of an M2M device. Add the direction to identify the queue direction on each instance. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--src/libcamera/v4l2_device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp
index a6e9ca24..a2194416 100644
--- a/src/libcamera/v4l2_device.cpp
+++ b/src/libcamera/v4l2_device.cpp
@@ -415,7 +415,7 @@ void V4L2Device::close()
std::string V4L2Device::logPrefix() const
{
- return deviceNode_;
+ return deviceNode_ + (V4L2_TYPE_IS_OUTPUT(bufferType_) ? "[out]" : "[cap]");
}
/**