diff options
| author | Léo Lam <leo@leolam.fr> | 2020-11-18 11:10:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-18 11:10:48 +0100 |
| commit | 4eecb8fd1100db51a118c220c8b6a61fd672fc42 (patch) | |
| tree | 5c08b8d1d92b0b676a0c064d2200e4d6f64d5af5 /Source/Core/VideoCommon/OpcodeDecoding.cpp | |
| parent | eb1581bbcc30b79f51b736d2f31c9cb0489b1162 (diff) | |
| parent | 3d9b2aa0055ded7ee74f6e4a73ff54acecf313a9 (diff) | |
Merge pull request #9248 from lioncash/video-fmt
VideoCommon: Migrate over to fmt
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; } |
