summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/lm/lm.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-02-05 06:10:29 +0100
committerGitHub <noreply@github.com>2018-02-05 06:10:29 +0100
commit35517ca92cc3290e2882e3e9009bbb02a038d6f2 (patch)
tree0483cbc3d950644b9a042232c497c46d4c4b263e /src/core/hle/service/lm/lm.cpp
parentMerge pull request #160 from bunnei/svc-improvements (diff)
parentset: GetAvailableLanguageCodes should not return lang_codes size. (diff)
downloadyuzu-35517ca92cc3290e2882e3e9009bbb02a038d6f2.tar
yuzu-35517ca92cc3290e2882e3e9009bbb02a038d6f2.tar.gz
yuzu-35517ca92cc3290e2882e3e9009bbb02a038d6f2.tar.bz2
yuzu-35517ca92cc3290e2882e3e9009bbb02a038d6f2.tar.lz
yuzu-35517ca92cc3290e2882e3e9009bbb02a038d6f2.tar.xz
yuzu-35517ca92cc3290e2882e3e9009bbb02a038d6f2.tar.zst
yuzu-35517ca92cc3290e2882e3e9009bbb02a038d6f2.zip
Diffstat (limited to 'src/core/hle/service/lm/lm.cpp')
-rw-r--r--src/core/hle/service/lm/lm.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/lm/lm.cpp b/src/core/hle/service/lm/lm.cpp
index 2843e0e40..c480f6b97 100644
--- a/src/core/hle/service/lm/lm.cpp
+++ b/src/core/hle/service/lm/lm.cpp
@@ -76,7 +76,7 @@ private:
addr += sizeof(MessageHeader);
if (!header.IsSingleMessage()) {
- LOG_WARNING(Service, "Multi message logs are unimplemeneted");
+ LOG_WARNING(Service_LM, "Multi message logs are unimplemeneted");
return;
}
@@ -125,7 +125,7 @@ private:
if (line) {
output += std::to_string(line) + ':';
}
- if (output.back() == ':') {
+ if (output.length() > 0 && output.back() == ':') {
output += ' ';
}
output += message;
@@ -150,7 +150,7 @@ void LM::Initialize(Kernel::HLERequestContext& ctx) {
rb.Push(RESULT_SUCCESS);
rb.PushIpcInterface<Logger>();
- LOG_DEBUG(Service, "called");
+ LOG_DEBUG(Service_LM, "called");
}
LM::LM() : ServiceFramework("lm") {