exo2: tweak debug for better logging

This commit is contained in:
Michael Scire 2020-05-17 23:19:55 -07:00 committed by SciresM
parent 1fb9407d5d
commit b922dff414

View file

@ -233,8 +233,8 @@ namespace ams::secmon::smc {
constinit std::atomic<int> g_logged = 0;
constexpr int LogMin = 0x100;
constexpr int LogMax = 0x120;
constexpr int LogMin = 0x200;
constexpr int LogMax = 0x400;
constexpr size_t LogBufSize = 0x5000;
@ -269,20 +269,20 @@ namespace ams::secmon::smc {
}
void HandleSmc(int type, SmcArguments &args) {
if (type == HandlerType_User) {
DebugLog(args);
}
/* Get the table. */
const auto &table = GetHandlerTable(static_cast<HandlerType>(type), args.r[0]);
if (std::addressof(table) == std::addressof(g_handler_tables[HandlerType_User])) {
DebugLog(args);
}
/* Get the handler info. */
const auto &info = GetHandlerInfo(table, args.r[0]);
/* Set the invocation result. */
args.r[0] = static_cast<u64>(InvokeSmcHandler(info, args));
if (type == HandlerType_User) {
if (std::addressof(table) == std::addressof(g_handler_tables[HandlerType_User])) {
DebugLog(args);
}