From a712c64ece2fd28f4cbf462fefe5f3a67dc7303b Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 2 Mar 2022 00:38:17 +1100 Subject: [PATCH] Adding logging for Success / Failure on Gigabyte RGBFusion2SMBus DMI check --- .../GigabyteRGBFusion2SMBusControllerDetect.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Controllers/GigabyteRGBFusion2SMBusController/GigabyteRGBFusion2SMBusControllerDetect.cpp b/Controllers/GigabyteRGBFusion2SMBusController/GigabyteRGBFusion2SMBusControllerDetect.cpp index 44895375..7ce3195e 100644 --- a/Controllers/GigabyteRGBFusion2SMBusController/GigabyteRGBFusion2SMBusControllerDetect.cpp +++ b/Controllers/GigabyteRGBFusion2SMBusController/GigabyteRGBFusion2SMBusControllerDetect.cpp @@ -11,8 +11,10 @@ #include #include "dependencies/dmiinfo.h" -#define DETECTOR_NAME "Gigabyte RGB Fusion 2 SMBus" -#define VENDOR_NAME "Gigabyte Technology Co., Ltd." +#define DETECTOR_NAME "Gigabyte RGB Fusion 2 SMBus" +#define VENDOR_NAME "Gigabyte Technology Co., Ltd." +#define GIGABYTE_FOUND_MB_MESSAGE_EN "[%s] Success - Found '%s' in the JSON list" +#define GIGABYTE_NOT_FOUND_MB_MESSAGE_EN "[%s] FAILED - '%s' was not found in the JSON list. Do NOT enable if this is a USB based board." #define SMBUS_ADDRESS 0x68 typedef struct @@ -111,6 +113,7 @@ void DetectGigabyteRGBFusion2SMBusControllers(std::vector& if(found) { + LOG_DEBUG(GIGABYTE_FOUND_MB_MESSAGE_EN, DETECTOR_NAME, dmi.getMainboard().c_str()); for(unsigned int bus = 0; bus < busses.size(); bus++) { IF_MOBO_SMBUS(busses[bus]->pci_vendor, busses[bus]->pci_device) @@ -142,6 +145,10 @@ void DetectGigabyteRGBFusion2SMBusControllers(std::vector& } } } + else + { + LOG_DEBUG(GIGABYTE_NOT_FOUND_MB_MESSAGE_EN, DETECTOR_NAME, dmi.getMainboard().c_str()); + } } /* DetectRGBFusion2SMBusControllers() */