diff options
author | RSDuck <RSDuck@users.noreply.github.com> | 2021-06-07 19:01:57 +0200 |
---|---|---|
committer | RSDuck <RSDuck@users.noreply.github.com> | 2021-06-07 19:02:09 +0200 |
commit | 1793abcfb4b4e7b81ddba1058e14b05f3c96973a (patch) | |
tree | c0242498b261cbd0b1252c62cb2c3fa75029991f | |
parent | e3b4350f44a51d0012457a556dc04dfd0ba267d4 (diff) |
don't printf from exception handler
it was handy for debugging, but it's dangerous
-rw-r--r-- | src/ARMJIT_Memory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ARMJIT_Memory.cpp b/src/ARMJIT_Memory.cpp index 3b78505..2fde711 100644 --- a/src/ARMJIT_Memory.cpp +++ b/src/ARMJIT_Memory.cpp @@ -584,7 +584,7 @@ bool MapAtAddress(u32 addr) return false; u8* states = num == 0 ? MappingStatus9 : MappingStatus7; - printf("mapping mirror %x, %x %x %d %d\n", mirrorStart, mirrorSize, memoryOffset, region, num); + //printf("mapping mirror %x, %x %x %d %d\n", mirrorStart, mirrorSize, memoryOffset, region, num); bool isExecutable = ARMJIT::CodeMemRegions[region]; u32 dtcmStart = NDS::ARM9->DTCMBase; @@ -650,7 +650,7 @@ bool MapAtAddress(u32 addr) #if defined(__SWITCH__) if (!hasCode) { - printf("trying to map %x (size: %x) from %x\n", mirrorStart + sectionOffset, sectionSize, sectionOffset + memoryOffset + OffsetsPerRegion[region]); + //printf("trying to map %x (size: %x) from %x\n", mirrorStart + sectionOffset, sectionSize, sectionOffset + memoryOffset + OffsetsPerRegion[region]); bool succeded = MapIntoRange(mirrorStart + sectionOffset, num, sectionOffset + memoryOffset + OffsetsPerRegion[region], sectionSize); assert(succeded); } |