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 <uajain@igalia.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Umang Jain
2025-07-22 15:55:38 +05:30
committed by Kieran Bingham
parent 14882b8314
commit 01a9b83f38

View File

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