summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-08-18 02:22:58 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-08-19 18:07:29 +0300
commitd0cf81656939012b693931b721a1c276935d8358 (patch)
tree7f48df5d5baf15fc76f099d9331a56fc05763e3d
parent0c32433d8c742d2a52d44264c64faec2c7ac28f2 (diff)
libcamera: device_enumerator: Print media device name in error message
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@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
-rw-r--r--src/libcamera/device_enumerator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcamera/device_enumerator.cpp b/src/libcamera/device_enumerator.cpp
index 6fcbae76..60c918f0 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";
}
}