aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/apm/interface.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-12-08 21:58:13 -0800
committerGitHub <noreply@github.com>2020-12-08 21:58:13 -0800
commit6f41763061082d5fa2ab039c554427152243cb46 (patch)
tree158dde17ce9426c21c727f03a6e8651b09a2dade /src/core/hle/service/apm/interface.cpp
parent05a703e15d37265523b7f804e066a80ba14f0096 (diff)
parent6b7320add44bf3d933063d0b93296222fd522ef6 (diff)
Merge pull request #5166 from lioncash/log-cast
core: Remove unnecessary enum casts in log calls
Diffstat (limited to 'src/core/hle/service/apm/interface.cpp')
-rw-r--r--src/core/hle/service/apm/interface.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/hle/service/apm/interface.cpp b/src/core/hle/service/apm/interface.cpp
index 89442e21e..298f6d520 100644
--- a/src/core/hle/service/apm/interface.cpp
+++ b/src/core/hle/service/apm/interface.cpp
@@ -28,8 +28,7 @@ private:
const auto mode = rp.PopEnum<PerformanceMode>();
const auto config = rp.PopEnum<PerformanceConfiguration>();
- LOG_DEBUG(Service_APM, "called mode={} config={}", static_cast<u32>(mode),
- static_cast<u32>(config));
+ LOG_DEBUG(Service_APM, "called mode={} config={}", mode, config);
controller.SetPerformanceConfiguration(mode, config);
@@ -41,7 +40,7 @@ private:
IPC::RequestParser rp{ctx};
const auto mode = rp.PopEnum<PerformanceMode>();
- LOG_DEBUG(Service_APM, "called mode={}", static_cast<u32>(mode));
+ LOG_DEBUG(Service_APM, "called mode={}", mode);
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS);
@@ -111,7 +110,7 @@ void APM_Sys::SetCpuBoostMode(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto mode = rp.PopEnum<CpuBoostMode>();
- LOG_DEBUG(Service_APM, "called, mode={:08X}", static_cast<u32>(mode));
+ LOG_DEBUG(Service_APM, "called, mode={:08X}", mode);
controller.SetFromCpuBoostMode(mode);