Skip to content

Commit

Permalink
Base: Change some logging stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsh1ft3r committed Jan 29, 2025
1 parent 117587c commit c84efa6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Xenon/Base/Logging/Filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ bool ParseFilterRule(Filter& instance, Iterator begin, Iterator end) {
CLS(ODD) \
CLS(SFCX) \
CLS(XMA) \
CLS(Guest) \
CLS(DebugPrint) \
CLS(SMC) \
CLS(UART)

Expand Down
2 changes: 1 addition & 1 deletion Xenon/Base/Logging/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ enum class Class : u8 {
XMA,
SMC, // System Management Controller messages.
UART, // UART output.
Guest, // Guest hardware output. Xbox Kernel Debug Prints.
DebugPrint, // Guest hardware output. Xbox Kernel Debug Prints.
Count // Total number of logging classes.
};

Expand Down
4 changes: 2 additions & 2 deletions Xenon/Core/XCPU/Interpreter/Interpreter_Helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ void PPCInterpreter::ppcDebugLoadImageSymbols(PPU_STATE *hCore,
Kdinfo.CheckSum = MMURead32(hCore, moduleInfoAddress + 8);
Kdinfo.SizeOfImage = MMURead32(hCore, moduleInfoAddress + 12);

LOG_XBOX(Guest, "[{}]: *** DebugLoadImageSymbols ***", hCore->ppuName);
LOG_XBOX(Guest, "Loaded: {} at address {:#x} - {:#x}", moduleName, Kdinfo.BaseOfDll, (Kdinfo.BaseOfDll + Kdinfo.SizeOfImage));
LOG_XBOX(Xenon, "[{}]: *** DebugLoadImageSymbols ***", hCore->ppuName);
LOG_XBOX(Xenon, "Loaded: {} at address {:#x} - {:#x}", moduleName, Kdinfo.BaseOfDll, (Kdinfo.BaseOfDll + Kdinfo.SizeOfImage));
}

void PPCInterpreter::ppcDebugUnloadImageSymbols(PPU_STATE *hCore,
Expand Down
2 changes: 1 addition & 1 deletion Xenon/Core/XCPU/Interpreter/PPCInterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ void PPCInterpreter::ppcInterpreterTrap(PPU_STATE *hCore, u32 trapNumber) {
dbgString[idx] = MMURead8(
hCore, hCore->ppuThread[hCore->currentThread].GPR[0x3] + idx);
}
LOG_XBOX(Guest, " > DebugPrint: {}", dbgString.c_str());
LOG_XBOX(DebugPrint, "> {}", dbgString);
}

if (trapNumber == 0x17) {
Expand Down

0 comments on commit c84efa6

Please sign in to comment.