From 0c0bb8153ab5d56b2a428ba662dd1bff620b7404 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sun, 5 Sep 2021 20:57:04 -0700 Subject: [PATCH] fusee: attempt reboot to self if possible, better abort/fatal handlers --- libstratosphere/source/result/result_on_assertion.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libstratosphere/source/result/result_on_assertion.cpp b/libstratosphere/source/result/result_on_assertion.cpp index 6d4337ef..0e7b56a5 100644 --- a/libstratosphere/source/result/result_on_assertion.cpp +++ b/libstratosphere/source/result/result_on_assertion.cpp @@ -18,7 +18,7 @@ namespace ams::result::impl { NORETURN WEAK_SYMBOL void OnResultAbort(const char *file, int line, const char *func, const char *expr, Result result) { - ::ams::diag::AbortImpl(file, line, func, expr, result.GetValue(), "Result Abort: %203d-%04d", result.GetModule(), result.GetDescription()); + ::ams::diag::AbortImpl(file, line, func, expr, result.GetValue(), "Result Abort: 2%03d-%04d", result.GetModule(), result.GetDescription()); AMS_INFINITE_LOOP(); __builtin_unreachable(); } @@ -28,7 +28,7 @@ namespace ams::result::impl { } NORETURN WEAK_SYMBOL void OnResultAssertion(const char *file, int line, const char *func, const char *expr, Result result) { - ::ams::diag::AssertionFailureImpl(file, line, func, expr, result.GetValue(), "Result Assertion: %203d-%04d", result.GetModule(), result.GetDescription()); + ::ams::diag::AssertionFailureImpl(file, line, func, expr, result.GetValue(), "Result Assertion: 2%03d-%04d", result.GetModule(), result.GetDescription()); AMS_INFINITE_LOOP(); __builtin_unreachable(); }