[libcamera-devel,1/5] libcamera: pipeline_handler: Remove duplicated log from uvc and vimc

Message ID 20190430183746.28518-2-laurent.pinchart@ideasonboard.com
State Accepted
Commit baad55d00975f8931d51c333def20472457dc943
Headers show
Series
  • Miscellaneous cleanups and refactoring
Related show

Commit Message

Laurent Pinchart April 30, 2019, 6:37 p.m. UTC
The uvcvideo and vimc pipeline handlers print the requested resolution
in their configureStreams() operation. This duplicates a generic log
statement in the Camera::configureStreams() method, remove it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 src/libcamera/pipeline/uvcvideo.cpp | 3 ---
 src/libcamera/pipeline/vimc.cpp     | 3 ---
 2 files changed, 6 deletions(-)

Comments

Niklas Söderlund April 30, 2019, 6:51 p.m. UTC | #1
Hi Laurent,

Thanks for your work.

On 2019-04-30 21:37:42 +0300, Laurent Pinchart wrote:
> The uvcvideo and vimc pipeline handlers print the requested resolution
> in their configureStreams() operation. This duplicates a generic log
> statement in the Camera::configureStreams() method, remove it.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

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

> ---
>  src/libcamera/pipeline/uvcvideo.cpp | 3 ---
>  src/libcamera/pipeline/vimc.cpp     | 3 ---
>  2 files changed, 6 deletions(-)
> 
> diff --git a/src/libcamera/pipeline/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo.cpp
> index 2f9b5e0fdc08..fd1d6df177d9 100644
> --- a/src/libcamera/pipeline/uvcvideo.cpp
> +++ b/src/libcamera/pipeline/uvcvideo.cpp
> @@ -109,9 +109,6 @@ int PipelineHandlerUVC::configureStreams(Camera *camera,
>  	const StreamConfiguration *cfg = &config[&data->stream_];
>  	int ret;
>  
> -	LOG(UVC, Debug) << "Configure the camera for resolution "
> -			<< cfg->width << "x" << cfg->height;
> -
>  	V4L2DeviceFormat format = {};
>  	format.width = cfg->width;
>  	format.height = cfg->height;
> diff --git a/src/libcamera/pipeline/vimc.cpp b/src/libcamera/pipeline/vimc.cpp
> index f70b4d3c6bab..f95140661b2a 100644
> --- a/src/libcamera/pipeline/vimc.cpp
> +++ b/src/libcamera/pipeline/vimc.cpp
> @@ -109,9 +109,6 @@ int PipelineHandlerVimc::configureStreams(Camera *camera,
>  	const StreamConfiguration *cfg = &config[&data->stream_];
>  	int ret;
>  
> -	LOG(VIMC, Debug) << "Configure the camera for resolution "
> -			 << cfg->width << "x" << cfg->height;
> -
>  	V4L2DeviceFormat format = {};
>  	format.width = cfg->width;
>  	format.height = cfg->height;
> -- 
> Regards,
> 
> Laurent Pinchart
> 
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel@lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel

Patch

diff --git a/src/libcamera/pipeline/uvcvideo.cpp b/src/libcamera/pipeline/uvcvideo.cpp
index 2f9b5e0fdc08..fd1d6df177d9 100644
--- a/src/libcamera/pipeline/uvcvideo.cpp
+++ b/src/libcamera/pipeline/uvcvideo.cpp
@@ -109,9 +109,6 @@  int PipelineHandlerUVC::configureStreams(Camera *camera,
 	const StreamConfiguration *cfg = &config[&data->stream_];
 	int ret;
 
-	LOG(UVC, Debug) << "Configure the camera for resolution "
-			<< cfg->width << "x" << cfg->height;
-
 	V4L2DeviceFormat format = {};
 	format.width = cfg->width;
 	format.height = cfg->height;
diff --git a/src/libcamera/pipeline/vimc.cpp b/src/libcamera/pipeline/vimc.cpp
index f70b4d3c6bab..f95140661b2a 100644
--- a/src/libcamera/pipeline/vimc.cpp
+++ b/src/libcamera/pipeline/vimc.cpp
@@ -109,9 +109,6 @@  int PipelineHandlerVimc::configureStreams(Camera *camera,
 	const StreamConfiguration *cfg = &config[&data->stream_];
 	int ret;
 
-	LOG(VIMC, Debug) << "Configure the camera for resolution "
-			 << cfg->width << "x" << cfg->height;
-
 	V4L2DeviceFormat format = {};
 	format.width = cfg->width;
 	format.height = cfg->height;