summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-12-31 09:28:00 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-01-04 00:23:26 +0200
commitb63209a793877f901a4ff4b1224cc7d12c3a2fc4 (patch)
tree9b7b064d8f6ab68c5f6fdc3432768a9b5cced264
parent9f5d6ee69f7649f14d12fc8f492dc8ef67d551c5 (diff)
libcamera: device_enumerator: Downgrade skipped device errors to warnings
When a device is skipped by the udev-based enumerator a message is logged. Downgrade its severity to warning as the error isn't fatal. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
-rw-r--r--src/libcamera/device_enumerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/device_enumerator.cpp b/src/libcamera/device_enumerator.cpp
index 7eef450e..bc55a12f 100644
--- a/src/libcamera/device_enumerator.cpp
+++ b/src/libcamera/device_enumerator.cpp
@@ -302,8 +302,8 @@ int DeviceEnumeratorUdev::enumerate()
dev = udev_device_new_from_syspath(udev_, syspath);
if (!dev) {
- LOG(Error) << "Failed to get device for '" <<
- syspath << "', skipping";
+ LOG(Warning) << "Failed to get device for '" <<
+ syspath << "', skipping";
continue;
}