From 90fffe1de7ca2f6ee404d9fe3181b02a6e316ac8 Mon Sep 17 00:00:00 2001 From: Wunkolo Date: Mon, 5 Sep 2022 09:54:37 -0700 Subject: [PATCH] [PPC] Fix memory assert formatting This was still using printf-style format specifiers. Causing memory asserts to show up like this while testing. ``` !> 0000438C Memory 10001040 assert failed: !> 0000438C Expected: %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X !> 0000438C Actual: %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X !> 0000438C TEST FAILED ``` Updated them so they format correctly: ``` !> 00002CCC Memory 10001040 assert failed: !> 00002CCC Expected: FC FD FE FF 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F !> 00002CCC Actual: FC FD FE FF 00 00 00 00 00 00 00 00 00 00 00 00 !> 00002CCC TEST FAILED ``` --- src/xenia/cpu/ppc/testing/ppc_testing_main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/cpu/ppc/testing/ppc_testing_main.cc b/src/xenia/cpu/ppc/testing/ppc_testing_main.cc index bcc7e0c6c..5faa4998e 100644 --- a/src/xenia/cpu/ppc/testing/ppc_testing_main.cc +++ b/src/xenia/cpu/ppc/testing/ppc_testing_main.cc @@ -349,8 +349,8 @@ class TestRunner { uint32_t expected = std::strtoul(ccs, nullptr, 16); uint8_t actual = *p; - expecteds.AppendFormat(" %02X", expected); - actuals.AppendFormat(" %02X", actual); + expecteds.AppendFormat(" {:02X}", expected); + actuals.AppendFormat(" {:02X}", actual); if (expected != actual) { any_failed = true;