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>
This commit is contained in:
Laurent Pinchart 2019-08-18 02:22:58 +03:00
parent 0c32433d8c
commit d0cf816569

View file

@ -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";
}
}