diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-04-29 03:26:48 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-04-30 04:04:04 +0300 |
commit | bcf986d07b1faf5412304cf63a0dfd05dbd91472 (patch) | |
tree | 80f36bf80261a31cec20754769948c3c23dc7092 /src/libcamera/ipa_module.cpp | |
parent | bf01e04f29931aa6d64f3d408ce2a374b79254b6 (diff) |
libcamera: ipa_module: Add log prefix
Make the IPAModule class inherit from Loggable to log the IPA module
name in all messages.
Before:
[14:19:55.743795676] [20250] ERROR IPAModule ipa_module.cpp:279 IPA module is not an ELF file
After:
[14:20:22.343795887] [20270] ERROR IPAModule ipa_module.cpp:279 ipa_vimc.so: IPA module is not an ELF file
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/libcamera/ipa_module.cpp')
-rw-r--r-- | src/libcamera/ipa_module.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcamera/ipa_module.cpp b/src/libcamera/ipa_module.cpp index 52823e88..3444a788 100644 --- a/src/libcamera/ipa_module.cpp +++ b/src/libcamera/ipa_module.cpp @@ -471,4 +471,9 @@ bool IPAModule::match(PipelineHandler *pipe, !strcmp(info_.pipelineName, pipe->name()); } +std::string IPAModule::logPrefix() const +{ + return utils::basename(libPath_.c_str()); +} + } /* namespace libcamera */ |