aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/fatal/fatal.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/fatal/fatal.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/fatal/fatal.cpp')
-rw-r--r--src/core/hle/service/fatal/fatal.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/fatal/fatal.cpp b/src/core/hle/service/fatal/fatal.cpp
index 9b7672a91..13147472e 100644
--- a/src/core/hle/service/fatal/fatal.cpp
+++ b/src/core/hle/service/fatal/fatal.cpp
@@ -111,8 +111,9 @@ static void GenerateErrorReport(Core::System& system, ResultCode error_code,
static void ThrowFatalError(Core::System& system, ResultCode error_code, FatalType fatal_type,
const FatalInfo& info) {
- LOG_ERROR(Service_Fatal, "Threw fatal error type {} with error code 0x{:X}",
- static_cast<u32>(fatal_type), error_code.raw);
+ LOG_ERROR(Service_Fatal, "Threw fatal error type {} with error code 0x{:X}", fatal_type,
+ error_code.raw);
+
switch (fatal_type) {
case FatalType::ErrorReportAndScreen:
GenerateErrorReport(system, error_code, info);