From 39dc7d8c8ad3be57470270c42de8d9a0fc3e591e Mon Sep 17 00:00:00 2001 From: Ash Logan Date: Tue, 28 Jul 2026 22:49:32 +1000 Subject: [PATCH] fix: bad debug prints --- common/sysconfig.cpp | 4 ++-- plugin/src/main.cpp | 4 ++-- src/utils/replace_mem.cpp | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/common/sysconfig.cpp b/common/sysconfig.cpp index ec56614..bb13d4b 100644 --- a/common/sysconfig.cpp +++ b/common/sysconfig.cpp @@ -53,7 +53,7 @@ nn::swkbd::LanguageType get_system_language() { return nn::swkbd::LanguageType::English; } - DEBUG_FUNCTION_LINE_VERBOSE("System language found: %d", language); + DEBUG_FUNCTION_LINE_VERBOSE("System language found: %d", static_cast(language)); cached_language = language; return language; } @@ -80,7 +80,7 @@ static void get_mcp_config() { mcp_os_version = os_version; DEBUG_FUNCTION_LINE_VERBOSE("Running on %d.%d.%d%c; %s%s", - os_version.major, os_version.minor, os_version.patch, os_version.region + os_version.major, os_version.minor, os_version.patch, os_version.region, config.code_id, config.serial_id ); } diff --git a/plugin/src/main.cpp b/plugin/src/main.cpp index 20e5db0..a8466e6 100644 --- a/plugin/src/main.cpp +++ b/plugin/src/main.cpp @@ -38,7 +38,7 @@ WUPS_PLUGIN_LICENSE("GPLv3"); WUPS_USE_STORAGE("inkay"); INITIALIZE_PLUGIN() { - WHBLogModuleInit(); + WHBLogCafeInit(); Config::Init(); @@ -54,7 +54,7 @@ DEINITIALIZE_PLUGIN() { Inkay_Finalize(); NotificationModule_DeInitLibrary(); - WHBLogModuleDeinit(); + WHBLogCafeDeinit(); } ON_APPLICATION_START() { diff --git a/src/utils/replace_mem.cpp b/src/utils/replace_mem.cpp index 03e94b2..1c7003b 100644 --- a/src/utils/replace_mem.cpp +++ b/src/utils/replace_mem.cpp @@ -85,7 +85,6 @@ bool replace_unsigned(U *addr, U original_value, U new_value) { ); DCFlushRange(addr, sizeof(new_value)); - DEBUG_FUNCTION_LINE_VERBOSE("%08x is now %08x", inst, *inst); return *addr == new_value; } template bool replace_unsigned(uint64_t *, uint64_t, uint64_t);