From 12809ff171aee57b306a9b29d6593793ea984ae6 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 26 Jun 2021 03:22:04 +0300 Subject: libcamera: pipeline: simple: converter: Improve error message When the configuration of the converter fails due to format mismatch, the error messages only indicates that a failure occurred. Improve it to ease debugging by printing the requested and obtained formats. Signed-off-by: Laurent Pinchart Reviewed-by: Umang Jain Reviewed-by: Paul Elder --- src/libcamera/pipeline/simple/converter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libcamera/pipeline/simple/converter.cpp b/src/libcamera/pipeline/simple/converter.cpp index 9af1096b..3baf78f9 100644 --- a/src/libcamera/pipeline/simple/converter.cpp +++ b/src/libcamera/pipeline/simple/converter.cpp @@ -64,7 +64,9 @@ int SimpleConverter::Stream::configure(const StreamConfiguration &inputCfg, if (format.fourcc != videoFormat || format.size != inputCfg.size || format.planes[0].bpl != inputCfg.stride) { LOG(SimplePipeline, Error) - << "Input format not supported"; + << "Input format not supported (requested " + << inputCfg.size.toString() << "-" << videoFormat.toString() + << ", got " << format.toString() << ")"; return -EINVAL; } -- cgit v1.2.1