From d68a29771f47bccd45fae72eef86ee6586deaf63 Mon Sep 17 00:00:00 2001 From: Paul Elder Date: Wed, 5 Jun 2019 16:54:45 -0400 Subject: libcamera: ipa_module: add path to module loading error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an error message to tell, if an IPA module failed to load, the path to the IPA module shared object that was attempted to be loaded. Signed-off-by: Paul Elder Reviewed-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- src/libcamera/ipa_module.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcamera/ipa_module.cpp b/src/libcamera/ipa_module.cpp index 58e8d1d8..d201b4f8 100644 --- a/src/libcamera/ipa_module.cpp +++ b/src/libcamera/ipa_module.cpp @@ -289,6 +289,10 @@ int IPAModule::loadIPAModuleInfo() unmap: munmap(map, soSize); close: + if (ret) + LOG(IPAModule, Error) + << "Error loading IPA module info for " << libPath_; + close(fd); return ret; } -- cgit v1.2.1