VERY experimental Nintendo Switch 2 emulator
C++
logger: Add APM service logging category.
bunnei3aeeee5ae3a1
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cppindex c1f0311ce4..27a18a6c23 100644--- a/src/common/logging/backend.cpp+++ b/src/common/logging/backend.cpp@@ -34,6 +34,7 @@ namespace Log {CLS(Service) \SUB(Service, ACC) \SUB(Service, AM) \+ SUB(Service, APM) \SUB(Service, SM) \SUB(Service, FS) \SUB(Service, GSP) \diff --git a/src/common/logging/log.h b/src/common/logging/log.hindex bf1fe9bbc7..83fd012f15 100644--- a/src/common/logging/log.h+++ b/src/common/logging/log.h@@ -51,6 +51,7 @@ enum class Class : ClassType {/// should have its own subclass.Service_ACC, ///< The ACC (Account service) implementationService_AM, ///< The AM (Applet manager service) implementation+ Service_APM, ///< The APM service implementationService_SM, ///< The SRV (Service Directory) implementationService_FS, ///< The FS (Filesystem) service implementationService_GSP, ///< The GSP (GPU control) servicediff --git a/src/core/hle/service/apm/apm.cpp b/src/core/hle/service/apm/apm.cppindex c4b1723c58..a7495d0a0b 100644--- a/src/core/hle/service/apm/apm.cpp+++ b/src/core/hle/service/apm/apm.cpp@@ -33,7 +33,8 @@ private:IPC::ResponseBuilder rb{ctx, 2};rb.Push(RESULT_SUCCESS);- LOG_WARNING(Service, "(STUBBED) called mode=%u config=%u", static_cast<u32>(mode), config);+ LOG_WARNING(Service_APM, "(STUBBED) called mode=%u config=%u", static_cast<u32>(mode),+ config);}void GetPerformanceConfiguration(Kernel::HLERequestContext& ctx) {@@ -45,7 +46,7 @@ private:rb.Push(RESULT_SUCCESS);rb.Push<u32>(0); // Performance configuration- LOG_WARNING(Service, "(STUBBED) called mode=%u", static_cast<u32>(mode));+ LOG_WARNING(Service_APM, "(STUBBED) called mode=%u", static_cast<u32>(mode));}};