Skip to content

Commit

Permalink
Fix formatting string for assembly MVID mismatch (#50474)
Browse files Browse the repository at this point in the history
During development of the MVID check change I at some point ended
up with mismatched printf specifiers and arguments. This change fixes
this inconsistency.

Thanks

Tomas
  • Loading branch information
trylek authored Apr 2, 2021
1 parent c24bf80 commit fc9faf2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/coreclr/inc/CrstTypes.def
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Crst ArgBasedStubCache
End

Crst AssemblyLoader
AcquiredBefore DeadlockDetection UniqueStack
AcquiredBefore DeadlockDetection UniqueStack DebuggerMutex
End

Crst AvailableClass
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/inc/crsttypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ int g_rgCrstLevelMap[] =
14, // CrstAppDomainHandleTable
0, // CrstArgBasedStubCache
0, // CrstAssemblyList
7, // CrstAssemblyLoader
12, // CrstAssemblyLoader
3, // CrstAvailableClass
4, // CrstAvailableParamTypes
7, // CrstBaseDomain
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/vm/nativeimage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ void NativeImage::CheckAssemblyMvid(Assembly *assembly) const

SString message;
message.Printf(W("MVID mismatch between loaded assembly '%s' (MVID = %s) and an assembly with the same simple name embedded in the native image '%s' (MVID = %s)"),
assembly->GetSimpleName(),
SString(SString::Utf8, assembly->GetSimpleName()).GetUnicode(),
assemblyMvidText,
SString(SString::Utf8, GetFileName()).GetUnicode(),
componentMvidText);
Expand Down

0 comments on commit fc9faf2

Please sign in to comment.