Explorar o código

logger: Add SET service logging category.

bunnei %!s(int64=8) %!d(string=hai) anos
pai
achega
c689fe8424
Modificáronse 3 ficheiros con 12 adicións e 16 borrados
  1. 3 5
      src/common/logging/backend.cpp
  2. 8 10
      src/common/logging/log.h
  3. 1 1
      src/core/hle/service/set/set.cpp

+ 3 - 5
src/common/logging/backend.cpp

@@ -33,19 +33,17 @@ namespace Log {
     SUB(Kernel, SVC)                                                                               \
     CLS(Service)                                                                                   \
     SUB(Service, ACC)                                                                              \
+    SUB(Service, Audio)                                                                            \
     SUB(Service, AM)                                                                               \
     SUB(Service, APM)                                                                              \
-    SUB(Service, SM)                                                                               \
     SUB(Service, FS)                                                                               \
-    SUB(Service, GSP)                                                                              \
-    SUB(Service, CFG)                                                                              \
-    SUB(Service, DSP)                                                                              \
     SUB(Service, HID)                                                                              \
     SUB(Service, LM)                                                                               \
     SUB(Service, NIFM)                                                                             \
     SUB(Service, NVDRV)                                                                            \
     SUB(Service, PCTL)                                                                             \
-    SUB(Service, Audio)                                                                            \
+    SUB(Service, SET)                                                                              \
+    SUB(Service, SM)                                                                               \
     SUB(Service, VI)                                                                               \
     CLS(HW)                                                                                        \
     SUB(HW, Memory)                                                                                \

+ 8 - 10
src/common/logging/log.h

@@ -49,20 +49,18 @@ enum class Class : ClassType {
     Kernel_SVC,        ///< Kernel system calls
     Service,           ///< HLE implementation of system services. Each major service
                        ///  should have its own subclass.
-    Service_ACC,       ///< The ACC (Account service) implementation
-    Service_AM,        ///< The AM (Applet manager service) implementation
-    Service_APM,       ///< The APM service implementation
-    Service_SM,        ///< The SRV (Service Directory) implementation
-    Service_FS,        ///< The FS (Filesystem) service implementation
-    Service_GSP,       ///< The GSP (GPU control) service
-    Service_CFG,       ///< The CFG (Configuration) service
-    Service_DSP,       ///< The DSP (DSP control) service
+    Service_ACC,       ///< The ACC (Accounts) service
+    Service_AM,        ///< The AM (Applet manager) service
+    Service_APM,       ///< The APM (Performance) service
+    Service_Audio,     ///< The Audio (Audio control) service
+    Service_FS,        ///< The FS (Filesystem) service
     Service_HID,       ///< The HID (Human interface device) service
-    Service_LM,        ///< The LM (Logger) service implementation
+    Service_LM,        ///< The LM (Logger) service
     Service_NIFM,      ///< The NIFM (Network interface) service
     Service_NVDRV,     ///< The NVDRV (Nvidia driver) service
     Service_PCTL,      ///< The PCTL (Parental control) service
-    Service_Audio,     ///< The Audio (Audio control) service
+    Service_SET,       ///< The SET (Settings) service
+    Service_SM,        ///< The SM (Service manager) service
     Service_VI,        ///< The VI (Video interface) service
     HW,                ///< Low-level hardware emulation
     HW_Memory,         ///< Memory-map and address translation

+ 1 - 1
src/core/hle/service/set/set.cpp

@@ -24,7 +24,7 @@ void SET::GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx) {
     rb.Push(RESULT_SUCCESS);
     rb.Push(static_cast<u64>(lang_codes.size()));
 
-    LOG_WARNING(Service, "(STUBBED) called");
+    LOG_WARNING(Service_SET, "(STUBBED) called");
 }
 
 SET::SET(const char* name) : ServiceFramework(name) {