From 01a9b83f3833f1ccfec22c991de747403c46ae68 Mon Sep 17 00:00:00 2001 From: Umang Jain Date: Tue, 22 Jul 2025 15:55:38 +0530 Subject: [PATCH] pipeline: simple: Improve debug log in validate() Improve the debug log while adjusting the StreamConfiguration's pixel format. The log should clearly indicate the requested pixel format and the adjusted pixel format. Signed-off-by: Umang Jain Reviewed-by: Kieran Bingham Reviewed-by: Milan Zamazal Signed-off-by: Kieran Bingham --- src/libcamera/pipeline/simple/simple.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp index 4323472e..9b24a0db 100644 --- a/src/libcamera/pipeline/simple/simple.cpp +++ b/src/libcamera/pipeline/simple/simple.cpp @@ -1207,7 +1207,9 @@ CameraConfiguration::Status SimpleCameraConfiguration::validate() PixelFormat pixelFormat = *it; if (cfg.pixelFormat != pixelFormat) { - LOG(SimplePipeline, Debug) << "Adjusting pixel format"; + LOG(SimplePipeline, Debug) + << "Adjusting pixel format from " + << cfg.pixelFormat << " to " << pixelFormat; cfg.pixelFormat = pixelFormat; status = Adjusted; }