diff --git a/src/xenia/cpu/debug_info.cc b/src/xenia/cpu/debug_info.cc index a685f930e..43e041fe6 100644 --- a/src/xenia/cpu/debug_info.cc +++ b/src/xenia/cpu/debug_info.cc @@ -12,6 +12,8 @@ #include #include +#include "xenia/base/logging.h" + namespace xe { namespace cpu { @@ -30,18 +32,17 @@ DebugInfo::~DebugInfo() { void DebugInfo::Dump() { if (source_disasm_) { - printf("PPC:\n%s\n", source_disasm_); + XELOGD("PPC:\n%s\n", source_disasm_); } if (raw_hir_disasm_) { - printf("Unoptimized HIR:\n%s\n", raw_hir_disasm_); + XELOGD("Unoptimized HIR:\n%s\n", raw_hir_disasm_); } if (hir_disasm_) { - printf("Optimized HIR:\n%s\n", hir_disasm_); + XELOGD("Optimized HIR:\n%s\n", hir_disasm_); } if (machine_code_disasm_) { - printf("Machine Code:\n%s\n", machine_code_disasm_); + XELOGD("Machine Code:\n%s\n", machine_code_disasm_); } - fflush(stdout); } } // namespace cpu diff --git a/src/xenia/cpu/frontend/testing/ppc_testing_main.cc b/src/xenia/cpu/frontend/testing/ppc_testing_main.cc index 973adb536..ab814a1ae 100644 --- a/src/xenia/cpu/frontend/testing/ppc_testing_main.cc +++ b/src/xenia/cpu/frontend/testing/ppc_testing_main.cc @@ -293,9 +293,9 @@ class TestRunner { reg_value.c_str(), actual_value, xe::countof(actual_value))) { any_failed = true; - printf("Register %s assert failed:\n", reg_name.c_str()); - printf(" Expected: %s == %s\n", reg_name.c_str(), reg_value.c_str()); - printf(" Actual: %s == %s\n", reg_name.c_str(), actual_value); + XELOGE("Register %s assert failed:\n", reg_name.c_str()); + XELOGE(" Expected: %s == %s\n", reg_name.c_str(), reg_value.c_str()); + XELOGE(" Actual: %s == %s\n", reg_name.c_str(), actual_value); } } else if (it.first == "MEMORY_OUT") { size_t space_pos = it.second.find(" "); @@ -318,9 +318,9 @@ class TestRunner { uint8_t actual = *p; if (expected != actual) { any_failed = true; - printf("Memory %s assert failed:\n", address_str.c_str()); - printf(" Expected: %.8X %.2X\n", current_address, expected); - printf(" Actual: %.8X %.2X\n", current_address, actual); + XELOGE("Memory %s assert failed:\n", address_str.c_str()); + XELOGE(" Expected: %.8X %.2X\n", current_address, expected); + XELOGE(" Actual: %.8X %.2X\n", current_address, actual); } ++p; }