Skip to content

Commit

Permalink
Merge pull request #1674 from nicolasnoble/downgrade-message
Browse files Browse the repository at this point in the history
Downgrading spurious warnings to debug messages.
  • Loading branch information
nicolasnoble committed Jun 24, 2024
2 parents 7ebbc38 + 044849c commit 7582595
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/callstacks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,18 @@ void PCSX::CallStacks::storeRA(uint32_t sp, uint32_t ra) {

void PCSX::CallStacks::loadRA(uint32_t sp) {
if (!m_current) {
normalLog("[CS] Got a RA load from 0x%08x, but we don't have any active stack.\n", sp);
debugLog("[CSDBG] Got a RA load from 0x%08x, but we don't have any active stack.\n", sp);
return;
}
auto& calls = m_current->calls;
if (calls.size() == 0) {
normalLog("[CS] Got a RA load from 0x%08x, but current stack is empty.\n", sp);
debugLog("[CSDBG] Got a RA load from 0x%08x, but current stack is empty.\n", sp);
return;
}
auto last = --calls.end();
if (last->sp != sp) {
normalLog("[CS] Got a RA load from 0x%08x, but the active stack's at 0x%08x (ra: 0x%08x, size = %i)\n", sp,
last->sp, last->ra, calls.size());
debugLog("[CSDBG] Got a RA load from 0x%08x, but the active stack's at 0x%08x (ra: 0x%08x, size = %i)\n", sp,
last->sp, last->ra, calls.size());
}
}

Expand Down

0 comments on commit 7582595

Please sign in to comment.