[libcamera-devel,1/2] libcamera: formats: fix warning print
diff mbox series

Message ID 20220518122014.54506-1-tomi.valkeinen@ideasonboard.com
State Accepted
Headers show
Series
  • [libcamera-devel,1/2] libcamera: formats: fix warning print
Related show

Commit Message

Tomi Valkeinen May 18, 2022, 12:20 p.m. UTC
Remove extra "0x" from the print.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
---
 src/libcamera/formats.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Laurent Pinchart May 18, 2022, 10:26 p.m. UTC | #1
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@ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@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;
>  	}

Patch
diff mbox series

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