From d19f1861988fd20b315907b3d986ec09bed0884d Mon Sep 17 00:00:00 2001 From: TheRogueZeta <6479694-TheRogueZeta@users.noreply.gitlab.com> Date: Mon, 30 May 2022 00:44:19 -0700 Subject: [PATCH] Correct type casting on log prints --- Controllers/ENESMBusController/ENESMBusControllerDetect.cpp | 2 +- LogManager.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Controllers/ENESMBusController/ENESMBusControllerDetect.cpp b/Controllers/ENESMBusController/ENESMBusControllerDetect.cpp index f1d223dc..ea0f8ad8 100644 --- a/Controllers/ENESMBusController/ENESMBusControllerDetect.cpp +++ b/Controllers/ENESMBusController/ENESMBusControllerDetect.cpp @@ -303,7 +303,7 @@ void DetectENESMBusMotherboardControllers(std::vector &bus * * \******************************************************************************************/ -#define GPU_CHECK_DEVICE_MESSAGE_EN "[%s] Bus %02d is a GPU and the subvendor matches the one for %s, looking for a device at %02X" +#define GPU_CHECK_DEVICE_MESSAGE_EN "[%s] Bus %02d is a GPU and the subvendor matches the one for %s, looking for a device at 0x%02X" void DetectENESMBusGPUControllers(i2c_smbus_interface* bus, uint8_t i2c_addr, const std::string& name) { diff --git a/LogManager.h b/LogManager.h index 09d7f8f5..626364bd 100644 --- a/LogManager.h +++ b/LogManager.h @@ -12,10 +12,10 @@ | Common LOG strings | | This may need to be in it's own .h file | \*-------------------------------------------------*/ -#define SMBUS_CHECK_DEVICE_MESSAGE_EN "[%s] Bus %02d is a motherboard and the subvendor matches the one for %s, looking for a device at %02X" +#define SMBUS_CHECK_DEVICE_MESSAGE_EN "[%s] Bus %02d is a motherboard and the subvendor matches the one for %s, looking for a device at 0x%02X" #define SMBUS_CHECK_DEVICE_FAILURE_EN "[%s] Bus %02d is not a motherboard or the subvendor does not match the one for %s, skipping detection" -#define GPU_DETECT_MESSAGE "[%s] Found a device match at Bus %02d for Device %04X and SubDevice %04X: %s" +#define GPU_DETECT_MESSAGE "[%s] Found a device match at Bus %02d for Device 0x%04X and SubDevice 0x%04X: %s" using json = nlohmann::json;