[libcamera-devel] [PATCH 1/2] libcamera: formats: fix warning print

Laurent Pinchart laurent.pinchart at ideasonboard.com
Thu May 19 00:26:50 CEST 2022


Hi Tomi,

Thank you for the patch.

On Wed, May 18, 2022 at 03:20:13PM +0300, Tomi Valkeinen wrote:
> Remove extra "0x" from the print.
> 
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen at ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>

> ---
>  src/libcamera/formats.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/libcamera/formats.cpp b/src/libcamera/formats.cpp
> index afcaabc5..3e60ec7d 100644
> --- a/src/libcamera/formats.cpp
> +++ b/src/libcamera/formats.cpp
> @@ -926,7 +926,7 @@ const PixelFormatInfo &PixelFormatInfo::info(const PixelFormat &format)
>  	const auto iter = pixelFormatInfo.find(format);
>  	if (iter == pixelFormatInfo.end()) {
>  		LOG(Formats, Warning)
> -			<< "Unsupported pixel format 0x"
> +			<< "Unsupported pixel format "
>  			<< utils::hex(format.fourcc());
>  		return pixelFormatInfoInvalid;
>  	}

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list