[libcamera-devel] [PATCH 4/9] libcamera: device_enumerator: Downgrade skipped device errors to warnings

Niklas Söderlund niklas.soderlund at ragnatech.se
Thu Jan 3 22:21:39 CET 2019


Hi Laurent,

Thanks for your work.

On 2019-01-03 03:31:05 +0200, Laurent Pinchart wrote:
> 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 at ideasonboard.com>

Reviewed-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>

> ---
>  src/libcamera/device_enumerator.cpp | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/libcamera/device_enumerator.cpp b/src/libcamera/device_enumerator.cpp
> index 7eef450e0c65..bc55a12f2a4e 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;
>  		}
>  
> -- 
> Regards,
> 
> Laurent Pinchart
> 
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel

-- 
Regards,
Niklas Söderlund


More information about the libcamera-devel mailing list