diff options
author | Jesse Talavera-Greenberg <jesse@jesse.tg> | 2023-03-23 13:04:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-23 18:04:38 +0100 |
commit | 79dfb8dc8f356834f0b6cf7baf73f77552b08923 (patch) | |
tree | 9a2a139617b8e178edd153ac68d56f2d0e48e3ed /src/ARMInterpreter_Branch.cpp | |
parent | 19280cff2d3d618f032d0e6ef4b1d4414fa02f58 (diff) |
Introduce `Platform::Log` (#1640)
* Add Platform::Log and Platform::LogLevel
* Replace most printf calls with Platform::Log calls
* Move a brace down
* Move some log entries to one Log call
- Some implementations of Log may assume a full line
* Log the MAC address as LogLevel::Info
Diffstat (limited to 'src/ARMInterpreter_Branch.cpp')
-rw-r--r-- | src/ARMInterpreter_Branch.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ARMInterpreter_Branch.cpp b/src/ARMInterpreter_Branch.cpp index 848c03b..ab66395 100644 --- a/src/ARMInterpreter_Branch.cpp +++ b/src/ARMInterpreter_Branch.cpp @@ -16,9 +16,11 @@ with melonDS. If not, see http://www.gnu.org/licenses/. */ -#include <stdio.h> #include "ARM.h" +#include "Platform.h" +using Platform::Log; +using Platform::LogLevel; namespace ARMInterpreter { @@ -79,7 +81,7 @@ void T_BLX_REG(ARM* cpu) { if (cpu->Num==1) { - printf("!! THUMB BLX_REG ON ARM7\n"); + Log(LogLevel::Warn, "!! THUMB BLX_REG ON ARM7\n"); return; } |