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:
parent
0c32433d8c
commit
d0cf816569
1 changed files with 2 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue