From 610e59fc83eea4fdbb0712338b3074318580e8d3 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 2 May 2022 07:48:45 +0300 Subject: libcamera: pipeline: simple: Improve debug message on config failure When pipeline configuration fails, print the format returned by the kernel in addition to the one requested by libcamera, to ease debugging. Signed-off-by: Laurent Pinchart Tested-by: Dorota Czaplejewicz Reviewed-by: Dorota Czaplejewicz Reviewed-by: Kieran Bingham --- src/libcamera/pipeline/simple/simple.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp index de75465e..efb28ccd 100644 --- a/src/libcamera/pipeline/simple/simple.cpp +++ b/src/libcamera/pipeline/simple/simple.cpp @@ -939,7 +939,8 @@ int SimplePipelineHandler::configure(Camera *camera, CameraConfiguration *c) captureFormat.size != pipeConfig->captureSize) { LOG(SimplePipeline, Error) << "Unable to configure capture in " - << pipeConfig->captureSize << "-" << videoFormat; + << pipeConfig->captureSize << "-" << videoFormat + << " (got " << captureFormat << ")"; return -EINVAL; } -- cgit v1.2.1