VERY experimental Nintendo Switch 2 emulator
C++
logger: Add LM service logging category.
bunnei9f14ebbd89ca
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cppindex 27a18a6c23..9af9f531bc 100644--- a/src/common/logging/backend.cpp+++ b/src/common/logging/backend.cpp@@ -41,6 +41,7 @@ namespace Log {SUB(Service, CFG) \SUB(Service, DSP) \SUB(Service, HID) \+ SUB(Service, LM) \SUB(Service, NIFM) \SUB(Service, NVDRV) \SUB(Service, Audio) \diff --git a/src/common/logging/log.h b/src/common/logging/log.hindex 83fd012f15..6897a10362 100644--- a/src/common/logging/log.h+++ b/src/common/logging/log.h@@ -58,6 +58,7 @@ enum class Class : ClassType {Service_CFG, ///< The CFG (Configuration) serviceService_DSP, ///< The DSP (DSP control) serviceService_HID, ///< The HID (Human interface device) service+ Service_LM, ///< The LM (Logger) service implementationService_NIFM, ///< The NIFM (Network interface) serviceService_NVDRV, ///< The NVDRV (Nvidia driver) serviceService_Audio, ///< The Audio (Audio control) servicediff --git a/src/core/hle/service/lm/lm.cpp b/src/core/hle/service/lm/lm.cppindex 7ff9c37f31..c480f6b97c 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;}@@ -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") {