summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2019-01-22 14:30:13 +0100
committerJacopo Mondi <jacopo@jmondi.org>2019-01-22 16:01:54 +0100
commit8abff82a9cf470f8b078a0fdec8e521bba8610eb (patch)
tree0dffaddbdf3a111bdca3338d2e09eac1ffd39bfa /src
parenta9685c508f6d4391f8f4494338fe22285ff4b5a1 (diff)
libcamera: ipu3: Use log categories
Log the IPU3 pipeline using IPU3 log category Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/pipeline/ipu3/ipu3.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index daf681ce..8cbc10ac 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -18,6 +18,8 @@
namespace libcamera {
+LOG_DEFINE_CATEGORY(IPU3)
+
class PipelineHandlerIPU3 : public PipelineHandler
{
public:
@@ -172,9 +174,10 @@ void PipelineHandlerIPU3::registerCameras(CameraManager *manager)
std::shared_ptr<Camera> camera = Camera::create(cameraName);
manager->addCamera(std::move(camera));
- LOG(Info) << "Registered Camera[" << numCameras << "] \""
- << cameraName << "\""
- << " connected to CSI-2 receiver " << id;
+ LOG(IPU3, Info)
+ << "Registered Camera[" << numCameras << "] \""
+ << cameraName << "\""
+ << " connected to CSI-2 receiver " << id;
numCameras++;
}