From c1d4314aad8c1200eed0b4509cc7cc00359e30ac Mon Sep 17 00:00:00 2001 From: Moses Turner Date: Mon, 8 Nov 2021 08:08:30 -0600 Subject: [PATCH] d/ht: move DEBUG_GET_ONCE_LOG_OPTION to ht_driver.cpp (NFC) Fixes an annoying warning. --- src/xrt/drivers/ht/ht_driver.cpp | 1 + src/xrt/drivers/ht/ht_driver.hpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/xrt/drivers/ht/ht_driver.cpp b/src/xrt/drivers/ht/ht_driver.cpp index ecda83e6f..05c4e8902 100644 --- a/src/xrt/drivers/ht/ht_driver.cpp +++ b/src/xrt/drivers/ht/ht_driver.cpp @@ -64,6 +64,7 @@ #include #include +DEBUG_GET_ONCE_LOG_OPTION(ht_log, "HT_LOG", U_LOGGING_WARN) /*! * Setup helper functions. diff --git a/src/xrt/drivers/ht/ht_driver.hpp b/src/xrt/drivers/ht/ht_driver.hpp index 9b10a8358..62268883d 100644 --- a/src/xrt/drivers/ht/ht_driver.hpp +++ b/src/xrt/drivers/ht/ht_driver.hpp @@ -43,8 +43,6 @@ using namespace xrt::auxiliary::util; -DEBUG_GET_ONCE_LOG_OPTION(ht_log, "HT_LOG", U_LOGGING_WARN) - #define HT_TRACE(htd, ...) U_LOG_XDEV_IFL_T(&htd->base, htd->ll, __VA_ARGS__) #define HT_DEBUG(htd, ...) U_LOG_XDEV_IFL_D(&htd->base, htd->ll, __VA_ARGS__) #define HT_INFO(htd, ...) U_LOG_XDEV_IFL_I(&htd->base, htd->ll, __VA_ARGS__)