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/DSi_DSP.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/DSi_DSP.cpp')
-rw-r--r-- | src/DSi_DSP.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/DSi_DSP.cpp b/src/DSi_DSP.cpp index b89fca3..eaa80f9 100644 --- a/src/DSi_DSP.cpp +++ b/src/DSi_DSP.cpp @@ -22,7 +22,10 @@ #include "DSi_DSP.h" #include "FIFO.h" #include "NDS.h" +#include "Platform.h" +using Platform::Log; +using Platform::LogLevel; namespace DSi_DSP { @@ -488,7 +491,7 @@ void Write8(u32 addr, u8 val) } void Write16(u32 addr, u16 val) { - printf("DSP WRITE16 %d %08X %08X %08X\n", IsDSPCoreEnabled(), addr, val, NDS::GetPC(0)); + Log(LogLevel::Debug,"DSP WRITE16 %d %08X %08X %08X\n", IsDSPCoreEnabled(), addr, val, NDS::GetPC(0)); //if (!IsDSPIOEnabled()) return; DSPCatchUp(); |