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 <laurent.pinchart@ideasonboard.com> Tested-by: Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> Reviewed-by: Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user