diff options
| author | Lioncash <mathew1800@gmail.com> | 2020-11-13 22:33:26 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2020-11-17 21:23:58 -0500 |
| commit | 3d9b2aa0055ded7ee74f6e4a73ff54acecf313a9 (patch) | |
| tree | 0ff92a960d77b6bc8b92bed1c7d61f79206887dc /Source/Core/VideoCommon/OpcodeDecoding.cpp | |
| parent | 8a621c2d5e7722de5148a0a40d4072445cffb361 (diff) | |
VideoCommon: Migrate over to fmt
Migrates off the printf-based formatting where applicable.
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/OpcodeDecoding.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp index 69e5f1ea01..e965f67901 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -111,7 +111,7 @@ u8* Run(DataReader src, u32* cycles, bool in_display_list) case GX_UNKNOWN_RESET: total_cycles += 6; // Datel software uses this command - DEBUG_LOG(VIDEO, "GX Reset?: %08x", cmd_byte); + DEBUG_LOG_FMT(VIDEO, "GX Reset?: {:08x}", cmd_byte); break; case GX_LOAD_CP_REG: @@ -187,7 +187,7 @@ u8* Run(DataReader src, u32* cycles, bool in_display_list) if (in_display_list) { total_cycles += 6; - INFO_LOG(VIDEO, "recursive display list detected"); + INFO_LOG_FMT(VIDEO, "recursive display list detected"); } else { @@ -202,12 +202,12 @@ u8* Run(DataReader src, u32* cycles, bool in_display_list) case GX_CMD_UNKNOWN_METRICS: // zelda 4 swords calls it and checks the metrics registers after // that total_cycles += 6; - DEBUG_LOG(VIDEO, "GX 0x44: %08x", cmd_byte); + DEBUG_LOG_FMT(VIDEO, "GX 0x44: {:08x}", cmd_byte); break; case GX_CMD_INVL_VC: // Invalidate Vertex Cache total_cycles += 6; - DEBUG_LOG(VIDEO, "Invalidate (vertex cache?)"); + DEBUG_LOG_FMT(VIDEO, "Invalidate (vertex cache?)"); break; case GX_LOAD_BP_REG: @@ -257,8 +257,8 @@ u8* Run(DataReader src, u32* cycles, bool in_display_list) { if (!s_is_fifo_error_seen) CommandProcessor::HandleUnknownOpcode(cmd_byte, opcode_start, is_preprocess); - ERROR_LOG(VIDEO, "FIFO: Unknown Opcode(0x%02x @ %p, preprocessing = %s)", cmd_byte, - opcode_start, is_preprocess ? "yes" : "no"); + ERROR_LOG_FMT(VIDEO, "FIFO: Unknown Opcode({:#04x} @ {}, preprocessing = {})", cmd_byte, + fmt::ptr(opcode_start), is_preprocess ? "yes" : "no"); s_is_fifo_error_seen = true; total_cycles += 1; } |
