[libcamera-devel] [PATCH v2 1/2] pipeline: raspberrypi: Reduce logging verbosity

Naushir Patuck naush at raspberrypi.com
Wed Dec 8 13:36:36 CET 2021


Demote a couple of lines of logging to Debug level to reduce the verbosity of
the log output during startup.

Signed-off-by: Naushir Patuck <naush at raspberrypi.com>
Reviewed-by: David Plowman <david.plowman at raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
 src/libcamera/pipeline/raspberrypi/raspberrypi.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
index 22c8ee6831d3..101aaea30743 100644
--- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
+++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp
@@ -161,10 +161,10 @@ V4L2SubdeviceFormat findBestFormat(const SensorFormats &formatsMap, const Size &
 				bestFormat.size = size;
 			}
 
-			LOG(RPI, Info) << "Format: " << size.toString()
-				       << " fmt " << format.toString()
-				       << " Score: " << score
-				       << " (best " << bestScore << ")";
+			LOG(RPI, Debug) << "Format: " << size.toString()
+					<< " fmt " << format.toString()
+					<< " Score: " << score
+					<< " (best " << bestScore << ")";
 		}
 	}
 
@@ -1746,8 +1746,8 @@ void RPiCameraData::checkRequestCompleted()
 		state_ = State::Idle;
 		if (dropFrameCount_) {
 			dropFrameCount_--;
-			LOG(RPI, Info) << "Dropping frame at the request of the IPA ("
-				       << dropFrameCount_ << " left)";
+			LOG(RPI, Debug) << "Dropping frame at the request of the IPA ("
+					<< dropFrameCount_ << " left)";
 		}
 	}
 }
-- 
2.25.1



More information about the libcamera-devel mailing list