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>
This commit is contained in:
Laurent Pinchart 2018-12-31 09:28:00 +02:00
parent 9f5d6ee69f
commit b63209a793

View file

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