[libcamera-devel] [PATCH 01/14] libcamera: device_enumerator: Print media device name in error message
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Sun Aug 18 03:13:16 CEST 2019
The device enumerator logs an error message when a media device is
removed while still in use. Add the device name to the message to help
debugging.
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
src/libcamera/device_enumerator.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/libcamera/device_enumerator.cpp b/src/libcamera/device_enumerator.cpp
index 6fcbae76b64e..60c918f0e26f 100644
--- a/src/libcamera/device_enumerator.cpp
+++ b/src/libcamera/device_enumerator.cpp
@@ -166,7 +166,8 @@ DeviceEnumerator::~DeviceEnumerator()
for (std::shared_ptr<MediaDevice> media : devices_) {
if (media->busy())
LOG(DeviceEnumerator, Error)
- << "Removing media device while still in use";
+ << "Removing media device " << media->deviceNode()
+ << " while still in use";
}
}
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list