tls: Switch to trace logs

This commit is contained in:
IndecisiveTurtle 2024-07-01 13:24:38 +03:00 committed by TheTurtle
parent 6774216038
commit 7c7e9427ba
1 changed files with 4 additions and 4 deletions

View File

@ -156,11 +156,11 @@ void PatchTLS(u64 segment_addr, u64 segment_size, Xbyak::CodeGenerator& c) {
u64 offset = 0; u64 offset = 0;
if (tls_pattern.imm_size == 4) { if (tls_pattern.imm_size == 4) {
std::memcpy(&offset, code + tls_pattern.pattern_size, sizeof(u32)); std::memcpy(&offset, code + tls_pattern.pattern_size, sizeof(u32));
LOG_INFO(Core_Linker, "PATTERN32 FOUND at {}, reg: {} offset: {:#x}", LOG_TRACE(Core_Linker, "PATTERN32 FOUND at {}, reg: {} offset: {:#x}",
fmt::ptr(code), tls_pattern.target_reg, offset); fmt::ptr(code), tls_pattern.target_reg, offset);
} else { } else {
std::memcpy(&offset, code + tls_pattern.pattern_size, sizeof(u64)); std::memcpy(&offset, code + tls_pattern.pattern_size, sizeof(u64));
LOG_INFO(Core_Linker, "PATTERN64 FOUND at {}, reg: {} offset: {:#x}", LOG_ERROR(Core_Linker, "PATTERN64 FOUND at {}, reg: {} offset: {:#x}",
fmt::ptr(code), tls_pattern.target_reg, offset); fmt::ptr(code), tls_pattern.target_reg, offset);
continue; continue;
} }