Skip to content

Commit

Permalink
Reduce log level of page fault notifications
Browse files Browse the repository at this point in the history
Log current hle function.
  • Loading branch information
elad335 committed Apr 2, 2020
1 parent cd42618 commit fd58ead
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Utilities/Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1450,9 +1450,17 @@ bool handle_access_violation(u32 addr, bool is_writing, x64_context* context) no
pf_events->events.emplace(static_cast<u32>(data2), addr);
}

sig_log.error("Page_fault %s location 0x%x because of %s memory", is_writing ? "writing" : "reading",
sig_log.warning("Page_fault %s location 0x%x because of %s memory", is_writing ? "writing" : "reading",
addr, data3 == SYS_MEMORY_PAGE_FAULT_CAUSE_READ_ONLY ? "writing read-only" : "using unmapped");

if (cpu->id_type() == 1)
{
if (const auto func = static_cast<ppu_thread*>(cpu)->current_function)
{
sig_log.warning("Page_fault while in function %s", func);
}
}

error_code sending_error = sys_event_port_send(pf_port_id, data1, data2, data3);

// If we fail due to being busy, wait a bit and try again.
Expand Down

0 comments on commit fd58ead

Please sign in to comment.