mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
sm: Move logging macros over to new fmt-compatible ones
This commit is contained in:
parent
32ece18bb6
commit
2a3f3bf977
@ -17,7 +17,7 @@ void Controller::ConvertSessionToDomain(Kernel::HLERequestContext& ctx) {
|
|||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
rb.Push<u32>(1); // Converted sessions start with 1 request handler
|
rb.Push<u32>(1); // Converted sessions start with 1 request handler
|
||||||
|
|
||||||
LOG_DEBUG(Service, "called, server_session=%d", ctx.Session()->GetObjectId());
|
NGLOG_DEBUG(Service, "called, server_session={}", ctx.Session()->GetObjectId());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Controller::DuplicateSession(Kernel::HLERequestContext& ctx) {
|
void Controller::DuplicateSession(Kernel::HLERequestContext& ctx) {
|
||||||
@ -29,11 +29,11 @@ void Controller::DuplicateSession(Kernel::HLERequestContext& ctx) {
|
|||||||
Kernel::SharedPtr<Kernel::ClientSession> session{ctx.Session()->parent->client};
|
Kernel::SharedPtr<Kernel::ClientSession> session{ctx.Session()->parent->client};
|
||||||
rb.PushMoveObjects(session);
|
rb.PushMoveObjects(session);
|
||||||
|
|
||||||
LOG_DEBUG(Service, "called, session=%u", session->GetObjectId());
|
NGLOG_DEBUG(Service, "called, session={}", session->GetObjectId());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Controller::DuplicateSessionEx(Kernel::HLERequestContext& ctx) {
|
void Controller::DuplicateSessionEx(Kernel::HLERequestContext& ctx) {
|
||||||
LOG_WARNING(Service, "(STUBBED) called, using DuplicateSession");
|
NGLOG_WARNING(Service, "(STUBBED) called, using DuplicateSession");
|
||||||
|
|
||||||
DuplicateSession(ctx);
|
DuplicateSession(ctx);
|
||||||
}
|
}
|
||||||
@ -43,7 +43,7 @@ void Controller::QueryPointerBufferSize(Kernel::HLERequestContext& ctx) {
|
|||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
rb.Push<u32>(0x500);
|
rb.Push<u32>(0x500);
|
||||||
|
|
||||||
LOG_WARNING(Service, "(STUBBED) called");
|
NGLOG_WARNING(Service, "(STUBBED) called");
|
||||||
}
|
}
|
||||||
|
|
||||||
Controller::Controller() : ServiceFramework("IpcController") {
|
Controller::Controller() : ServiceFramework("IpcController") {
|
||||||
|
@ -86,7 +86,7 @@ SM::~SM() = default;
|
|||||||
void SM::Initialize(Kernel::HLERequestContext& ctx) {
|
void SM::Initialize(Kernel::HLERequestContext& ctx) {
|
||||||
IPC::ResponseBuilder rb{ctx, 2};
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
LOG_DEBUG(Service_SM, "called");
|
NGLOG_DEBUG(Service_SM, "called");
|
||||||
}
|
}
|
||||||
|
|
||||||
void SM::GetService(Kernel::HLERequestContext& ctx) {
|
void SM::GetService(Kernel::HLERequestContext& ctx) {
|
||||||
@ -102,7 +102,7 @@ void SM::GetService(Kernel::HLERequestContext& ctx) {
|
|||||||
if (client_port.Failed()) {
|
if (client_port.Failed()) {
|
||||||
IPC::ResponseBuilder rb = rp.MakeBuilder(2, 0, 0);
|
IPC::ResponseBuilder rb = rp.MakeBuilder(2, 0, 0);
|
||||||
rb.Push(client_port.Code());
|
rb.Push(client_port.Code());
|
||||||
LOG_ERROR(Service_SM, "called service=%s -> error 0x%08X", name.c_str(),
|
NGLOG_ERROR(Service_SM, "called service={} -> error {:#010X}", name,
|
||||||
client_port.Code().raw);
|
client_port.Code().raw);
|
||||||
if (name.length() == 0)
|
if (name.length() == 0)
|
||||||
return; // LibNX Fix
|
return; // LibNX Fix
|
||||||
@ -113,8 +113,7 @@ void SM::GetService(Kernel::HLERequestContext& ctx) {
|
|||||||
auto session = client_port.Unwrap()->Connect();
|
auto session = client_port.Unwrap()->Connect();
|
||||||
ASSERT(session.Succeeded());
|
ASSERT(session.Succeeded());
|
||||||
if (session.Succeeded()) {
|
if (session.Succeeded()) {
|
||||||
LOG_DEBUG(Service_SM, "called service=%s -> session=%u", name.c_str(),
|
NGLOG_DEBUG(Service_SM, "called service={} -> session={}", name, (*session)->GetObjectId());
|
||||||
(*session)->GetObjectId());
|
|
||||||
IPC::ResponseBuilder rb =
|
IPC::ResponseBuilder rb =
|
||||||
rp.MakeBuilder(2, 0, 1, IPC::ResponseBuilder::Flags::AlwaysMoveHandles);
|
rp.MakeBuilder(2, 0, 1, IPC::ResponseBuilder::Flags::AlwaysMoveHandles);
|
||||||
rb.Push(session.Code());
|
rb.Push(session.Code());
|
||||||
|
Loading…
Reference in New Issue
Block a user