[libcamera-devel,3/3] libcamera: device_enumerator: Fix LOG usage

Message ID 20190213122035.25309-4-kieran.bingham@ideasonboard.com
State Accepted
Commit 613fc4000fa844174c86152d7131087e5a8feb06
Headers show
Series
  • Fix LOG usage
Related show

Commit Message

Kieran Bingham Feb. 13, 2019, 12:20 p.m. UTC
Add the DeviceEnumerator category to the last LOG() call requiring it.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 src/libcamera/device_enumerator.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/src/libcamera/device_enumerator.cpp b/src/libcamera/device_enumerator.cpp
index 703b03dd418a..5a9d33534e56 100644
--- a/src/libcamera/device_enumerator.cpp
+++ b/src/libcamera/device_enumerator.cpp
@@ -459,7 +459,8 @@  void DeviceEnumeratorUdev::udevNotify(EventNotifier *notifier)
 	std::string action(udev_device_get_action(dev));
 	std::string deviceNode(udev_device_get_devnode(dev));
 
-	LOG(Debug) << action << " device " << udev_device_get_devnode(dev);
+	LOG(DeviceEnumerator, Debug)
+		<< action << " device " << udev_device_get_devnode(dev);
 
 	if (action == "add") {
 		addDevice(deviceNode);