Changed format on gfx trace (#730)

* Changed format to add more debug

* Fixed format
This commit is contained in:
Lywx
2024-12-03 13:33:19 -05:00
committed by GitHub
parent 4a4a54c842
commit 534fd7d8df
+8 -2
View File
@@ -4011,8 +4011,14 @@ static void gfx_step() {
#ifdef USE_GBI_TRACE
if (cmd->words.trace.valid && CVarGetInteger("gEnableGFXTrace", 0)) {
SPDLOG_INFO("Trace File: {}", cmd->words.trace.file);
SPDLOG_INFO("Trace Line: {}", cmd->words.trace.idx);
#define TRACE \
"\n====================================\n" \
" - CMD: {:02X}\n" \
" - Path: {}:{}\n" \
" - W0: {:08X}\n" \
" - W1: {:08X}\n" \
"===================================="
SPDLOG_INFO(TRACE, (uint8_t)opcode, cmd->words.trace.file, cmd->words.trace.idx, cmd->words.w0, cmd->words.w1);
}
#endif