From patchwork Mon Jul 1 14:13:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Elder X-Patchwork-Id: 1557 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1BCA360BF8 for ; Mon, 1 Jul 2019 16:14:06 +0200 (CEST) Received: from emerald.jp (p1871204-ipngn14001hodogaya.kanagawa.ocn.ne.jp [153.220.127.204]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 373B5524; Mon, 1 Jul 2019 16:14:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1561990445; bh=QI46z951yXa0ZXz+waiXvMA+TSDdRm3Ts6MdLE1hXy8=; h=From:To:Cc:Subject:Date:From; b=lspj3O+uSBGXVShpkR9yTp7aNCPnT5iyOBwFmg7PcZJNqUW1knlr9NbGegm9KbNFw dr9RXMzHeurcbk4/dVsXEENbPrbNiomtdCuTsqP034JAI9uUhgJahD1KDoSYvtQbZn c8dF7K5NKo+7daRi9mKyNFCXKAh4BqFrAIO5pzUs= From: Paul Elder To: libcamera-devel@lists.libcamera.org Date: Mon, 1 Jul 2019 23:13:35 +0900 Message-Id: <20190701141336.10273-1-paul.elder@ideasonboard.com> X-Mailer: git-send-email 2.17.1 Subject: [libcamera-devel] [PATCH v2 1/2] libcamera: ipa_module: add path to module loading error message X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jul 2019 14:14:06 -0000 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 --- Changes in v2: don't show module version src/libcamera/ipa_module.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libcamera/ipa_module.cpp b/src/libcamera/ipa_module.cpp index 58e8d1d..5a46ec3 100644 --- a/src/libcamera/ipa_module.cpp +++ b/src/libcamera/ipa_module.cpp @@ -286,6 +286,11 @@ int IPAModule::loadIPAModuleInfo() ret = -EINVAL; } + if (ret) + LOG(IPAModule, Error) + << "Error loading IPA module at " + << libPath_; + unmap: munmap(map, soSize); close: