From 13208220d87f11353d070a3781cf39d2b1750ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Sat, 3 Sep 2022 03:20:38 +0200 Subject: [PATCH] spa: libcamera: print camera id when it appears/disappears --- spa/plugins/libcamera/libcamera-manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/libcamera/libcamera-manager.cpp b/spa/plugins/libcamera/libcamera-manager.cpp index e4ce49c63..c43e62156 100644 --- a/spa/plugins/libcamera/libcamera-manager.cpp +++ b/spa/plugins/libcamera/libcamera-manager.cpp @@ -190,7 +190,7 @@ void Impl::addCamera(std::shared_ptr camera) struct impl *impl = this; struct device *device; - spa_log_info(impl->log, "new camera"); + spa_log_info(impl->log, "new camera: %s", camera->id().c_str()); if ((device = find_device(impl, camera.get())) != NULL) return; @@ -206,7 +206,7 @@ void Impl::removeCamera(std::shared_ptr camera) struct impl *impl = this; struct device *device; - spa_log_info(impl->log, "camera removed"); + spa_log_info(impl->log, "camera removed: %s", camera->id().c_str()); if ((device = find_device(impl, camera.get())) == NULL) return;