Skip to content

Commit

Permalink
don't printf from exception handler
Browse files Browse the repository at this point in the history
it was handy for debugging, but it's dangerous
  • Loading branch information
RSDuck committed Jun 7, 2021
1 parent e3b4350 commit 1793abc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ARMJIT_Memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 1793abc

Please sign in to comment.