From patchwork Sun Jun 27 19:19:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 12718 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id BD991C321D for ; Sun, 27 Jun 2021 19:20:15 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id EFAE2684D5; Sun, 27 Jun 2021 21:20:14 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="wkdvOrA9"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 46162684D0 for ; Sun, 27 Jun 2021 21:20:13 +0200 (CEST) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C005729A for ; Sun, 27 Jun 2021 21:20:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1624821612; bh=JPEkb7btDeSU4SPSqHW4FkFc2lGNpI7nvAicbZ/m96E=; h=From:To:Subject:Date:From; b=wkdvOrA9uK+Mp+OQLkX2trqx9inR+5/ShVCHsnFtlVMXMnLMOYJ7J3Qr4fowiZp+2 nQ/OkAuXUG1GFwJLWuKIgOGeejAxoIySUeHOTJGpRNBa+jNE9Xr+ZU92PO32TbZPib eKO9f1EZZtRAPkSOz6Gs2wkm6PFnxc8f/+DWSEVg= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Sun, 27 Jun 2021 22:19:37 +0300 Message-Id: <20210627191937.14030-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: pipeline: simple: Log pipeline topology X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Log the topology for each valid discovered pipeline to aid debugging. Signed-off-by: Laurent Pinchart Reviewed-by: Umang Jain Reviewed-by: Paul Elder --- src/libcamera/pipeline/simple/simple.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp index 6ed3da423432..e214a7eb3a47 100644 --- a/src/libcamera/pipeline/simple/simple.cpp +++ b/src/libcamera/pipeline/simple/simple.cpp @@ -342,8 +342,15 @@ SimpleCameraData::SimpleCameraData(SimplePipelineHandler *pipe, /* Finally also remember the sensor. */ sensor_ = std::make_unique(sensor); ret = sensor_->init(); - if (ret) + if (ret) { sensor_.reset(); + return; + } + + LOG(SimplePipeline, Debug) + << "Found pipeline: " + << utils::join(entities_, " -> ", + [](const Entity &e) { return e.entity->name(); }); } int SimpleCameraData::init()