From 3c9c2870e226950bd2a4ed98488aae0be6fea3b6 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Tue, 15 Jun 2021 13:07:41 +0100 Subject: pipeline: ipu3: Report error when failing to configure If the IPA fails to configure, this can now be caught by the pipeline handler but the cause may not be clear. If the IPA is isolated, then reports from that IPA will not be visible in the libcamera logs directly. Print the return error value to help identify any issue that has arisen. Reviewed-by: Hirokazu Honda Reviewed-by: Paul Elder Reviewed-by: Umang Jain Signed-off-by: Kieran Bingham --- src/libcamera/pipeline/ipu3/ipu3.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp index 36256ea4..6c93bc6d 100644 --- a/src/libcamera/pipeline/ipu3/ipu3.cpp +++ b/src/libcamera/pipeline/ipu3/ipu3.cpp @@ -644,7 +644,8 @@ int PipelineHandlerIPU3::configure(Camera *camera, CameraConfiguration *c) ret = data->ipa_->configure(configInfo); if (ret) { - LOG(IPU3, Error) << "Failed to configure IPA"; + LOG(IPU3, Error) << "Failed to configure IPA: " + << strerror(-ret); return ret; } -- cgit v1.2.1