summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/lm
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-01-24 01:43:59 +0100
committerbunnei <bunneidev@gmail.com>2018-01-25 04:21:33 +0100
commitf9dae990066cb0fa3730a811353781e9e7bffa19 (patch)
tree1122f389ab4ffd56e622fe9e89c7e9130937954f /src/core/hle/service/lm
parentipc_helpers: Make interface domain agnostic and add header validation. (diff)
downloadyuzu-f9dae990066cb0fa3730a811353781e9e7bffa19.tar
yuzu-f9dae990066cb0fa3730a811353781e9e7bffa19.tar.gz
yuzu-f9dae990066cb0fa3730a811353781e9e7bffa19.tar.bz2
yuzu-f9dae990066cb0fa3730a811353781e9e7bffa19.tar.lz
yuzu-f9dae990066cb0fa3730a811353781e9e7bffa19.tar.xz
yuzu-f9dae990066cb0fa3730a811353781e9e7bffa19.tar.zst
yuzu-f9dae990066cb0fa3730a811353781e9e7bffa19.zip
Diffstat (limited to 'src/core/hle/service/lm')
-rw-r--r--src/core/hle/service/lm/lm.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/core/hle/service/lm/lm.cpp b/src/core/hle/service/lm/lm.cpp
index b505cdcaf..d5dcc8eaf 100644
--- a/src/core/hle/service/lm/lm.cpp
+++ b/src/core/hle/service/lm/lm.cpp
@@ -65,7 +65,7 @@ private:
*/
void Log(Kernel::HLERequestContext& ctx) {
// This function only succeeds - Get that out of the way
- IPC::RequestBuilder rb{ctx, 1};
+ IPC::RequestBuilder rb{ctx, 2};
rb.Push(RESULT_SUCCESS);
// Read MessageHeader, despite not doing anything with it right now
@@ -130,7 +130,7 @@ private:
}
output += message;
- LOG_DEBUG(Debug_Emulated, "%s", output.c_str());
+ LOG_INFO(Debug_Emulated, "%s", output.c_str());
}
};
@@ -146,21 +146,11 @@ void InstallInterfaces(SM::ServiceManager& service_manager) {
* 0: ResultCode
*/
void LM::Initialize(Kernel::HLERequestContext& ctx) {
- // TODO(Subv): Verify if this should return the interface as a domain object when called from
- // within a domain.
-
- auto logger = std::make_shared<Logger>();
- auto sessions = Kernel::ServerSession::CreateSessionPair(logger->GetServiceName());
- auto server = std::get<Kernel::SharedPtr<Kernel::ServerSession>>(sessions);
- auto client = std::get<Kernel::SharedPtr<Kernel::ClientSession>>(sessions);
- logger->ClientConnected(server);
-
- LOG_DEBUG(Service_SM, "called, initialized logger -> session=%u", client->GetObjectId());
IPC::RequestBuilder rb{ctx, 2, 0, 1};
rb.Push(RESULT_SUCCESS);
- rb.PushMoveObjects(std::move(client));
+ rb.PushIpcInterface<Logger>();
- LOG_INFO(Service_SM, "called");
+ LOG_DEBUG(Service, "called");
}
LM::LM() : ServiceFramework("lm") {