diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-06-27 02:09:06 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-06-29 00:43:46 +0300 |
commit | 535820fe51ac9881ae3562ffd4a69ef3359f85f6 (patch) | |
tree | ee6a5d48b0366bc839cd3ecbe5ea196ee1bae29c /src | |
parent | ec5d3142a9452703be93cb336689a9e6163a0f72 (diff) |
libcamera: pipeline: simple: Log pipeline topology
Log the topology for each valid discovered pipeline to aid debugging.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/pipeline/simple/simple.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp index 4d78e6fa..b29fff98 100644 --- a/src/libcamera/pipeline/simple/simple.cpp +++ b/src/libcamera/pipeline/simple/simple.cpp @@ -341,8 +341,15 @@ SimpleCameraData::SimpleCameraData(SimplePipelineHandler *pipe, /* Finally also remember the sensor. */ sensor_ = std::make_unique<CameraSensor>(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() |