diff options
| author | 2018-02-04 22:39:47 -0500 | |
|---|---|---|
| committer | 2018-02-04 22:39:47 -0500 | |
| commit | 8d2e4c3d39dca1abcb1e48c5cdbe02bdb1a21570 (patch) | |
| tree | 167f16e65e025013d90923b59d7d3f86159463c5 /src | |
| parent | lm: Ensure log string is non-empty before checking back(). (diff) | |
| download | yuzu-8d2e4c3d39dca1abcb1e48c5cdbe02bdb1a21570.tar.gz yuzu-8d2e4c3d39dca1abcb1e48c5cdbe02bdb1a21570.tar.xz yuzu-8d2e4c3d39dca1abcb1e48c5cdbe02bdb1a21570.zip | |
logger: Add APM service logging category.
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/logging/backend.cpp | 1 | ||||
| -rw-r--r-- | src/common/logging/log.h | 1 | ||||
| -rw-r--r-- | src/core/hle/service/apm/apm.cpp | 5 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index c1f0311ce..27a18a6c2 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp | |||
| @@ -34,6 +34,7 @@ namespace Log { | |||
| 34 | CLS(Service) \ | 34 | CLS(Service) \ |
| 35 | SUB(Service, ACC) \ | 35 | SUB(Service, ACC) \ |
| 36 | SUB(Service, AM) \ | 36 | SUB(Service, AM) \ |
| 37 | SUB(Service, APM) \ | ||
| 37 | SUB(Service, SM) \ | 38 | SUB(Service, SM) \ |
| 38 | SUB(Service, FS) \ | 39 | SUB(Service, FS) \ |
| 39 | SUB(Service, GSP) \ | 40 | SUB(Service, GSP) \ |
diff --git a/src/common/logging/log.h b/src/common/logging/log.h index bf1fe9bbc..83fd012f1 100644 --- a/src/common/logging/log.h +++ b/src/common/logging/log.h | |||
| @@ -51,6 +51,7 @@ enum class Class : ClassType { | |||
| 51 | /// should have its own subclass. | 51 | /// should have its own subclass. |
| 52 | Service_ACC, ///< The ACC (Account service) implementation | 52 | Service_ACC, ///< The ACC (Account service) implementation |
| 53 | Service_AM, ///< The AM (Applet manager service) implementation | 53 | Service_AM, ///< The AM (Applet manager service) implementation |
| 54 | Service_APM, ///< The APM service implementation | ||
| 54 | Service_SM, ///< The SRV (Service Directory) implementation | 55 | Service_SM, ///< The SRV (Service Directory) implementation |
| 55 | Service_FS, ///< The FS (Filesystem) service implementation | 56 | Service_FS, ///< The FS (Filesystem) service implementation |
| 56 | Service_GSP, ///< The GSP (GPU control) service | 57 | Service_GSP, ///< The GSP (GPU control) service |
diff --git a/src/core/hle/service/apm/apm.cpp b/src/core/hle/service/apm/apm.cpp index c4b1723c5..a7495d0a0 100644 --- a/src/core/hle/service/apm/apm.cpp +++ b/src/core/hle/service/apm/apm.cpp | |||
| @@ -33,7 +33,8 @@ private: | |||
| 33 | IPC::ResponseBuilder rb{ctx, 2}; | 33 | IPC::ResponseBuilder rb{ctx, 2}; |
| 34 | rb.Push(RESULT_SUCCESS); | 34 | rb.Push(RESULT_SUCCESS); |
| 35 | 35 | ||
| 36 | LOG_WARNING(Service, "(STUBBED) called mode=%u config=%u", static_cast<u32>(mode), config); | 36 | LOG_WARNING(Service_APM, "(STUBBED) called mode=%u config=%u", static_cast<u32>(mode), |
| 37 | config); | ||
| 37 | } | 38 | } |
| 38 | 39 | ||
| 39 | void GetPerformanceConfiguration(Kernel::HLERequestContext& ctx) { | 40 | void GetPerformanceConfiguration(Kernel::HLERequestContext& ctx) { |
| @@ -45,7 +46,7 @@ private: | |||
| 45 | rb.Push(RESULT_SUCCESS); | 46 | rb.Push(RESULT_SUCCESS); |
| 46 | rb.Push<u32>(0); // Performance configuration | 47 | rb.Push<u32>(0); // Performance configuration |
| 47 | 48 | ||
| 48 | LOG_WARNING(Service, "(STUBBED) called mode=%u", static_cast<u32>(mode)); | 49 | LOG_WARNING(Service_APM, "(STUBBED) called mode=%u", static_cast<u32>(mode)); |
| 49 | } | 50 | } |
| 50 | }; | 51 | }; |
| 51 | 52 | ||