From b4e901f67474637fd6b0caecceb5379e9d81b0f6 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz <jakob@collabora.com> Date: Mon, 13 Mar 2023 23:49:50 +0000 Subject: [PATCH] t/common: Print what driver is being used in Lighthouse driver --- src/xrt/targets/common/target_builder_lighthouse.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/xrt/targets/common/target_builder_lighthouse.c b/src/xrt/targets/common/target_builder_lighthouse.c index 6cee18086..7174cf666 100644 --- a/src/xrt/targets/common/target_builder_lighthouse.c +++ b/src/xrt/targets/common/target_builder_lighthouse.c @@ -278,6 +278,11 @@ lighthouse_estimate_system(struct xrt_builder *xb, if (have_survive_drv && have_vive_drv) { // We have both drivers - default to libsurvive, but if the user asks specifically for vive we'll give // it to them + if (vive_over_survive) { + LH_DEBUG("Using driver vive (over survive)!"); + } else { + LH_DEBUG("Using driver survive (both)!"); + } lhs->use_libsurvive = !vive_over_survive; } else if (have_survive_drv) { // We only have libsurvive - don't listen to the env var @@ -285,8 +290,10 @@ lighthouse_estimate_system(struct xrt_builder *xb, if (vive_over_survive) { LH_WARN("Asked for vive driver, but it isn't built. Using libsurvive."); } + LH_DEBUG("Using driver survive (only built)!"); lhs->use_libsurvive = true; } else if (have_vive_drv) { + LH_DEBUG("Using driver vive (only built)!"); // We only have vive lhs->use_libsurvive = false; } else {