mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 19:23:47 +01:00
Logging API change (refactor) (#19324)
* Rename LogType to Log * Explicitly use the Log:: enum when logging. Allows for autocomplete when editing. * Mac/ARM64 buildfix * Do the same with the hle result log macros * Rename the log names to mixed case while at it. * iOS buildfix * Qt buildfix attempt, ARM32 buildfix
This commit is contained in:
1 parent
ae3ff686f0
commit
e01ca5b057
393 files changed
+6198
-6193
No files matched your search
+4
-4
@@ -250,7 +250,7 @@ bool HandleFault(uintptr_t hostAddress, void *ctx) {
|
||||
uintptr_t crashHandler = (uintptr_t)MIPSComp::jit->GetCrashHandler();
|
||||
if (crashHandler != 0) {
|
||||
context->CTX_PC = crashHandler;
|
||||
ERROR_LOG(MEMMAP, "Bad execution access detected, halting: %08x (last known pc %08x, host: %p)", targetAddr, currentMIPS->pc, (void *)hostAddress);
|
||||
ERROR_LOG(Log::MemMap, "Bad execution access detected, halting: %08x (last known pc %08x, host: %p)", targetAddr, currentMIPS->pc, (void *)hostAddress);
|
||||
inCrashHandler = false;
|
||||
return true;
|
||||
}
|
||||
@@ -278,7 +278,7 @@ bool HandleFault(uintptr_t hostAddress, void *ctx) {
|
||||
context->CTX_PC += info.instructionSize;
|
||||
g_numReportedBadAccesses++;
|
||||
if (g_numReportedBadAccesses < 100) {
|
||||
ERROR_LOG(MEMMAP, "Bad memory access detected and ignored: %08x (%p)", guestAddress, (void *)hostAddress);
|
||||
ERROR_LOG(Log::MemMap, "Bad memory access detected and ignored: %08x (%p)", guestAddress, (void *)hostAddress);
|
||||
}
|
||||
} else {
|
||||
std::string infoString = "";
|
||||
@@ -309,7 +309,7 @@ bool HandleFault(uintptr_t hostAddress, void *ctx) {
|
||||
context->CTX_PC = crashHandler;
|
||||
else
|
||||
handled = false;
|
||||
ERROR_LOG(MEMMAP, "Bad memory access detected! %08x (%p) Stopping emulation. Info:\n%s", guestAddress, (void *)hostAddress, infoString.c_str());
|
||||
ERROR_LOG(Log::MemMap, "Bad memory access detected! %08x (%p) Stopping emulation. Info:\n%s", guestAddress, (void *)hostAddress, infoString.c_str());
|
||||
}
|
||||
|
||||
inCrashHandler = false;
|
||||
@@ -319,7 +319,7 @@ bool HandleFault(uintptr_t hostAddress, void *ctx) {
|
||||
#else
|
||||
|
||||
bool HandleFault(uintptr_t hostAddress, void *ctx) {
|
||||
ERROR_LOG(MEMMAP, "Exception handling not supported");
|
||||
ERROR_LOG(Log::MemMap, "Exception handling not supported");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user