Fix FailFast logging message (#75685)
authorEduardo Velarde <32459232+eduardo-vp@users.noreply.github.com>
Thu, 15 Sep 2022 21:08:03 +0000 (14:08 -0700)
committerGitHub <noreply@github.com>
Thu, 15 Sep 2022 21:08:03 +0000 (14:08 -0700)
src/coreclr/dlls/mscorrc/mscorrc.rc
src/coreclr/vm/eepolicy.cpp

index dfcf88c..b4ba942 100644 (file)
@@ -548,7 +548,7 @@ BEGIN
     IDS_ER_STACK_OVERFLOW                    "Description: The process was terminated due to stack overflow."
     IDS_ER_STACK                             "Stack:"
     IDS_ER_WORDAT                            "at"
-    IDS_ER_UNMANAGEDFAILFASTMSG              "at IP 0x%x (0x%x) with exit code 0x%x."
+    IDS_ER_UNMANAGEDFAILFASTMSG              "at IP 0x%1 (0x%2) with exit code 0x%3."
     IDS_ER_UNHANDLEDEXCEPTIONINFO            "exception code %1, exception address %2"
     IDS_ER_MESSAGE_TRUNCATE                  "The remainder of the message was truncated."
     IDS_ER_CODECONTRACT_FAILED               "Description: The application encountered a bug.  A managed code contract (precondition, postcondition, object invariant, or assert) failed."
index ae56deb..655e971 100644 (file)
@@ -469,7 +469,7 @@ void EEPolicy::LogFatalError(UINT exitCode, UINT_PTR address, LPCWSTR pszMessage
                 InlineSString<80> ssMessage;
                 InlineSString<80> ssErrorFormat;
                 if(!ssErrorFormat.LoadResource(CCompRC::Optional, IDS_ER_UNMANAGEDFAILFASTMSG ))
-                    ssErrorFormat.Set(W("at IP 0x%x (0x%x) with exit code 0x%x."));
+                    ssErrorFormat.Set(W("at IP 0x%1 (0x%2) with exit code 0x%3."));
                 SmallStackSString addressString;
                 addressString.Printf(W("%p"), pExceptionInfo? (PVOID)pExceptionInfo->ExceptionRecord->ExceptionAddress : (PVOID)address);