From patchwork Tue Jan 22 13:31:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 322 Return-Path: Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C2AC460B1B for ; Tue, 22 Jan 2019 14:31:35 +0100 (CET) X-Originating-IP: 2.224.242.101 Received: from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 448FDC000C; Tue, 22 Jan 2019 13:31:34 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Tue, 22 Jan 2019 14:31:42 +0100 Message-Id: <20190122133142.1165-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: ipu3: Use log categories 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: Tue, 22 Jan 2019 13:31:35 -0000 Log the IPU3 pipeline using IPU3 log category Signed-off-by: Jacopo Mondi Reviewed-by: Niklas Söderlund --- src/libcamera/pipeline/ipu3/ipu3.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) -- 2.20.1 diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp index daf681c..8cbc10a 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::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++; }