Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
e004639
Initial plan
Copilot Feb 2, 2026
8af2bbe
Add format attribute to printf-style wrapper functions
Copilot Feb 2, 2026
2f0ea0b
Fix some format string errors caught by format attribute
Copilot Feb 3, 2026
7a5ca5f
Fix all format string errors found by format attribute
Copilot Feb 3, 2026
1929625
Fix remaining format string errors in gc.cpp and emitarm64.cpp
Copilot Feb 3, 2026
ecb2762
Fix format-security error in emitarm.cpp
Copilot Feb 3, 2026
d7de16d
Address PR review feedback: use inttypes.h PRI macros and printf("%s"…
Copilot Feb 3, 2026
f0d5d4c
Fix format errors found in corehost files
Copilot Feb 3, 2026
fc5d193
Fix format error in nethost.cpp (size_t should use %zu)
Copilot Feb 18, 2026
1416929
Merge branch 'main' into copilot/add-format-attribute-to-wrappers
jkoritzinsky Feb 20, 2026
c71ed14
Fix Mono and CoreCLR format errors; remove duplicate PRId64 definition
Copilot Feb 20, 2026
851bd57
Remove PRI macro redefinitions; fix emitwasm.cpp format error
Copilot Feb 21, 2026
6397423
Fix Ci failures
jkoritzinsky Mar 2, 2026
33cc978
Include inttypes.h in ildasm and metainfo for PRI macros
Copilot Mar 12, 2026
64370e2
Merge branch 'main' into copilot/add-format-attribute-to-wrappers
jkoritzinsky Mar 17, 2026
dec406b
Fix more failures
jkoritzinsky Mar 19, 2026
cb02569
Merge branch 'main' of https://github.com/dotnet/runtime into copilot…
jkoritzinsky Mar 19, 2026
8cf0c84
Restore gc.cpp
jkoritzinsky Mar 20, 2026
196d297
Merge remote-tracking branch 'origin/main' into copilot/add-format-at…
Copilot Mar 24, 2026
ad4b0e3
More fixes copilot missed
jkoritzinsky Mar 24, 2026
55aa0fb
Fix format string errors exposed by new format attributes
jkoritzinsky Apr 3, 2026
8260f09
Fix remaining format mismatches from CI
jkoritzinsky Apr 3, 2026
1e84763
Fix additional CI format issues and review feedback
jkoritzinsky Apr 4, 2026
07e2d0c
Fix more error cases
jkoritzinsky Apr 6, 2026
a93c253
Fix up a few more places that (for some reason) only the ilasm pipeli…
jkoritzinsky Apr 6, 2026
9333f7a
ULONG != unsigned long
jkoritzinsky Apr 6, 2026
7fe4854
PR feedback
jkoritzinsky Apr 6, 2026
b44891d
Fix format string errors across debug, JIT, VM, and GC subsystems
Apr 7, 2026
6968f77
Merge branch 'main' into copilot/add-format-attribute-to-wrappers
jkoritzinsky Apr 8, 2026
4f7b7ef
Fix spurious indentation changes, format mismatch, and blank lines fr…
Copilot Apr 8, 2026
f6aa606
Fix remaining CI format mismatches in GC/JIT logs
jkoritzinsky Apr 10, 2026
c1a21fe
Apply clang-format fixes to JIT source files
jkoritzinsky Apr 27, 2026
fcb164d
Fix format string mismatches in CoreCLR VM subsystem
jkoritzinsky Apr 27, 2026
7e19078
Fix format string mismatches in GC subsystem
jkoritzinsky Apr 27, 2026
ff911e8
Add MINIPAL_ATTR_FORMAT_PRINTF to remaining printf-like wrappers
jkoritzinsky Apr 27, 2026
bde307d
Fix remaining format string mismatches across GC, VM, JIT, and debug …
jkoritzinsky Apr 27, 2026
fbb8a3c
Merge remote-tracking branch 'dotnet/main' into copilot/add-format-at…
jkoritzinsky Apr 27, 2026
0da6208
Fix format string mismatches in mono/metadata/threads.c
jkoritzinsky Apr 28, 2026
b6f5c9e
Fix printf format mismatches in CoreCLR subsystem
jkoritzinsky Apr 28, 2026
865018c
Fix format mismatches in createdump and mono-threads-state-machine
jkoritzinsky Apr 28, 2026
f9221f7
Fix format string mismatches across CoreCLR and Mono subsystems
jkoritzinsky Apr 28, 2026
dd75055
Merge remote-tracking branch 'upstream/main' into copilot/add-format-…
jkoritzinsky Apr 28, 2026
4b13c87
Fix PRIx format mismatches in crashinfo.cpp for 32-bit targets
jkoritzinsky Apr 28, 2026
b038332
Fix format string errors in walker, VM stubs, GC, and JIT emitters
jkoritzinsky Apr 29, 2026
2c7eb51
Merge branch 'main' into copilot/add-format-attribute-to-wrappers
jkoritzinsky Apr 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/coreclr/debug/createdump/crashinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ CrashInfo::EnumerateManagedModules()
if (enumModules != 0) {
m_pClrDataProcess->EndEnumModules(enumModules);
}
TRACE("EnumerateManagedModules: Module enumeration FINISHED (%d) ModuleMappings %06llx\n", m_dataTargetPagesAdded, m_cbModuleMappings / PAGE_SIZE);
TRACE("EnumerateManagedModules: Module enumeration FINISHED (%d) ModuleMappings %06" PRIx64 "\n", m_dataTargetPagesAdded, m_cbModuleMappings / PAGE_SIZE);
}
return true;
}
Expand Down Expand Up @@ -794,21 +794,21 @@ CrashInfo::PageMappedToPhysicalMemory(uint64_t start)
if (seekResult != pagemapOffset)
{
int seekErrno = errno;
TRACE("Seeking in pagemap file FAILED, addr: %" PRIA PRIx ", pagemap offset: %" PRIA PRIx ", ERRNO %d: %s\n", start, pagemapOffset, seekErrno, strerror(seekErrno));
TRACE("Seeking in pagemap file FAILED, addr: %" PRIA PRIx64 ", pagemap offset: %" PRIA PRIx64 ", ERRNO %d: %s\n", start, pagemapOffset, seekErrno, strerror(seekErrno));
return true;
}
uint64_t value;
size_t readResult = read(m_fdPagemap, (void*)&value, sizeof(value));
if (readResult == (size_t) -1)
{
int readErrno = errno;
TRACE("Reading of pagemap file FAILED, addr: %" PRIA PRIx ", pagemap offset: %" PRIA PRIx ", size: %zu, ERRNO %d: %s\n", start, pagemapOffset, sizeof(value), readErrno, strerror(readErrno));
TRACE("Reading of pagemap file FAILED, addr: %" PRIA PRIx64 ", pagemap offset: %" PRIA PRIx64 ", size: %zu, ERRNO %d: %s\n", start, pagemapOffset, sizeof(value), readErrno, strerror(readErrno));
return true;
}

bool is_page_present = (value & ((uint64_t)1 << 63)) != 0;
bool is_page_swapped = (value & ((uint64_t)1 << 62)) != 0;
TRACE_VERBOSE("Pagemap value for %" PRIA PRIx ", pagemap offset %" PRIA PRIx " is %" PRIA PRIx " -> %s\n", start, pagemapOffset, value, is_page_present ? "in memory" : (is_page_swapped ? "in swap" : "NOT in memory"));
TRACE_VERBOSE("Pagemap value for %" PRIA PRIx64 ", pagemap offset %" PRIA PRIx64 " is %" PRIA PRIx64 " -> %s\n", start, pagemapOffset, value, is_page_present ? "in memory" : (is_page_swapped ? "in swap" : "NOT in memory"));
return is_page_present || is_page_swapped;
#endif
}
Expand Down
6 changes: 3 additions & 3 deletions src/coreclr/debug/createdump/crashinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ typedef __typeof__(((elf_aux_entry*) 0)->a_un.a_val) elf_aux_val_t;

extern const std::string GetFileName(const std::string& fileName);
extern const std::string GetDirectory(const std::string& fileName);
extern std::string FormatString(const char* format, ...);
extern std::string FormatString(const char* format, ...) MINIPAL_ATTR_FORMAT_PRINTF(1, 2);
extern std::string ConvertString(const WCHAR* str);
extern std::string FormatGuid(const GUID* guid);

Expand Down Expand Up @@ -166,6 +166,6 @@ class CrashInfo : public ICLRDataEnumMemoryRegionsCallback, public ICLRDataLoggi
uint32_t GetMemoryRegionFlags(uint64_t start);
bool PageCanBeRead(uint64_t start);
bool PageMappedToPhysicalMemory(uint64_t start);
void Trace(const char* format, ...);
void TraceVerbose(const char* format, ...);
void Trace(const char* format, ...) MINIPAL_ATTR_FORMAT_PRINTF(2, 3);
void TraceVerbose(const char* format, ...) MINIPAL_ATTR_FORMAT_PRINTF(2, 3);
};
6 changes: 3 additions & 3 deletions src/coreclr/debug/createdump/crashinfomac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ CrashInfo::EnumerateMemoryRegions()
address,
address + size,
size / PAGE_SIZE,
info.pages_resident,
(unsigned long long)info.pages_resident,
info.offset,
info.is_submap ? "sub" : " ",
depth,
Expand Down Expand Up @@ -412,8 +412,8 @@ CrashInfo::ReadProcessMemory(uint64_t address, void* buffer, size_t size, size_t
if (result != KERN_SUCCESS || bytesRead != PAGE_SIZE)
{
g_readProcessMemoryResult = result;
TRACE_VERBOSE("ReadProcessMemory(%p %d): vm_read_overwrite failed bytesLeft %d bytesRead %d from %p: %s (%x)\n",
(void*)address, size, bytesLeft, bytesRead, (void*)addressAligned, mach_error_string(result), result);
TRACE_VERBOSE("ReadProcessMemory(%p %zd): vm_read_overwrite failed bytesLeft %zd bytesRead %lu from %p: %s (%x)\n",
(void*)address, size, bytesLeft, (unsigned long)bytesRead, (void*)addressAligned, mach_error_string(result), result);
break;
}
ssize_t bytesToCopy = PAGE_SIZE - offset;
Expand Down
10 changes: 5 additions & 5 deletions src/coreclr/debug/createdump/crashinfounix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ CrashInfo::EnumerateMemoryRegions()

if (g_diagnostics)
{
TRACE("Module mappings (%06llx):\n", m_cbModuleMappings / PAGE_SIZE);
TRACE("Module mappings (%06" PRIx64 "):\n", m_cbModuleMappings / PAGE_SIZE);
for (const ModuleRegion& region : m_moduleMappings)
{
region.Trace();
Expand Down Expand Up @@ -455,7 +455,7 @@ CrashInfo::VisitProgramHeader(uint64_t loadbias, uint64_t baseAddress, Phdr* phd
{
uint64_t ehFrameHdrStart = loadbias + phdr->p_vaddr;
uint64_t ehFrameHdrSize = phdr->p_memsz;
TRACE("VisitProgramHeader: ehFrameHdrStart %016llx ehFrameHdrSize %08llx\n", ehFrameHdrStart, ehFrameHdrSize);
TRACE("VisitProgramHeader: ehFrameHdrStart %" PRIA PRIx64 " ehFrameHdrSize %08" PRIx64 "\n", ehFrameHdrStart, ehFrameHdrSize);
InsertMemoryRegion(ehFrameHdrStart, ehFrameHdrSize);

if (m_appModel != AppModelType::NativeAOT)
Expand All @@ -464,7 +464,7 @@ CrashInfo::VisitProgramHeader(uint64_t loadbias, uint64_t baseAddress, Phdr* phd
ULONG64 ehFrameSize;
if (PAL_GetUnwindInfoSize(baseAddress, ehFrameHdrStart, ReadMemoryAdapter, &ehFrameStart, &ehFrameSize))
{
TRACE("VisitProgramHeader: ehFrameStart %016llx ehFrameSize %08llx\n", ehFrameStart, ehFrameSize);
TRACE("VisitProgramHeader: ehFrameStart %" PRIA PRIx64 " ehFrameSize %08" PRIx64 "\n", ehFrameStart, ehFrameSize);
if (ehFrameStart != 0 && ehFrameSize != 0)
{
InsertMemoryRegion(ehFrameStart, ehFrameSize);
Expand Down Expand Up @@ -501,7 +501,7 @@ CrashInfo::GetMemoryRegionFlags(uint64_t start)
if (region != nullptr) {
return region->Flags();
}
TRACE_VERBOSE("GetMemoryRegionFlags: %016llx FAILED\n", start);
TRACE_VERBOSE("GetMemoryRegionFlags: %" PRIA PRIx64 " FAILED\n", start);
return PF_R | PF_W | PF_X;
}

Expand Down Expand Up @@ -549,7 +549,7 @@ CrashInfo::ReadProcessMemory(uint64_t address, void* buffer, size_t size, size_t
{
// Preserve errno for the ELF dump writer call
g_readProcessMemoryErrno = errno;
TRACE_VERBOSE("ReadProcessMemory FAILED addr: %" PRIA PRIx " size: %zu error: %s (%d)\n", address, size, strerror(g_readProcessMemoryErrno), g_readProcessMemoryErrno);
TRACE_VERBOSE("ReadProcessMemory FAILED addr: %" PRIA PRIx64 " size: %zu error: %s (%d)\n", address, size, strerror(g_readProcessMemoryErrno), g_readProcessMemoryErrno);
return false;
}
return true;
Expand Down
14 changes: 8 additions & 6 deletions src/coreclr/debug/createdump/createdump.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
extern bool g_diagnostics;
extern bool g_diagnosticsVerbose;

#include <minipal/types.h>

#ifdef HOST_UNIX
extern void trace_printf(const char* format, ...);
extern void trace_verbose_printf(const char* format, ...);
extern void trace_printf(const char* format, ...) MINIPAL_ATTR_FORMAT_PRINTF(1, 2);
extern void trace_verbose_printf(const char* format, ...) MINIPAL_ATTR_FORMAT_PRINTF(1, 2);
#define TRACE(args...) trace_printf(args)
#define TRACE_VERBOSE(args...) trace_verbose_printf(args)
#else
Expand Down Expand Up @@ -90,12 +92,12 @@ typedef int T_CONTEXT;
#include <elf.h>
#include <link.h>
#endif
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#else
#include <winternl.h>
#include <dbghelp.h>
#endif
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#include <map>
#include <set>
#include <vector>
Expand Down Expand Up @@ -165,5 +167,5 @@ extern DWORD GetTempPathWrapper(IN DWORD nBufferLength, OUT LPSTR lpBuffer);
#else
#define GetTempPathWrapper GetTempPathA
#endif
extern void printf_status(const char* format, ...);
extern void printf_error(const char* format, ...);
extern void printf_status(const char* format, ...) MINIPAL_ATTR_FORMAT_PRINTF(1, 2);
extern void printf_error(const char* format, ...) MINIPAL_ATTR_FORMAT_PRINTF(1, 2);
6 changes: 3 additions & 3 deletions src/coreclr/debug/createdump/createdumpmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ int createdump_main(const int argc, const char* argv[])

g_ticksPerMS = minipal_hires_tick_frequency() / 1000UL;
g_startTime = minipal_hires_ticks();
TRACE("TickFrequency: %d ticks per ms\n", g_ticksPerMS);
TRACE("TickFrequency: %" PRIu64 " ticks per ms\n", g_ticksPerMS);

AStringHolder tmpPath = new char[MAX_LONGPATH];
if (options.DumpPathTemplate == nullptr)
Expand All @@ -220,11 +220,11 @@ int createdump_main(const int argc, const char* argv[])

if (CreateDump(options))
{
printf_status("Dump successfully written in %llums\n", (minipal_hires_ticks() - g_startTime) / g_ticksPerMS);
printf_status("Dump successfully written in %" PRIu64 "ms\n", (minipal_hires_ticks() - g_startTime) / g_ticksPerMS);
}
else
{
printf_error("Failure took %llums\n", (minipal_hires_ticks() - g_startTime) / g_ticksPerMS);
printf_error("Failure took %" PRIu64 "ms\n", (minipal_hires_ticks() - g_startTime) / g_ticksPerMS);
exitCode = -1;
}

Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/debug/createdump/createdumpunix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ CreateDump(const CreateDumpOptions& options)
#if defined(__arm__) || defined(__aarch64__) || defined(__loongarch64) || defined(__riscv)
g_pageSize = sysconf(_SC_PAGESIZE);
#endif
TRACE("PAGE_SIZE %d\n", PAGE_SIZE);
TRACE("PAGE_SIZE %lu\n", (unsigned long)PAGE_SIZE);

if (options.CrashReport && (options.AppModel == AppModelType::SingleFile || options.AppModel == AppModelType::NativeAOT))
{
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/debug/createdump/dumpwritermacho.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ DumpWriter::WriteDump()
if (alignment > 0)
{
if (alignment > sizeof(m_tempBuffer)) {
printf_error("Internal error: segment alignment %llu > sizeof(m_tempBuffer)\n", alignment);
printf_error("Internal error: segment alignment %" PRIu64 " > sizeof(m_tempBuffer)\n", alignment);
return false;
}
memset(m_tempBuffer, 0, alignment);
Expand Down Expand Up @@ -209,7 +209,7 @@ DumpWriter::WriteHeader(uint64_t* pFileOffset)
bool
DumpWriter::WriteSegments()
{
TRACE("Writing %" PRIu64 " memory regions to core file\n", m_segmentLoadCommands.size());
TRACE("Writing %zu memory regions to core file\n", m_segmentLoadCommands.size());

// Read from target process and write memory regions to core
uint64_t total = 0;
Expand Down
6 changes: 3 additions & 3 deletions src/coreclr/debug/di/breakpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,9 +607,9 @@ HRESULT CordbStepper::StepRange(BOOL fStepIn,

m_id = LsPtrToCookie(pEvent->StepData.stepperToken);

LOG((LF_CORDB,LL_INFO10000, "CS::SR: m_id:0x%x | 0x%x \n",
m_id,
LsPtrToCookie(pEvent->StepData.stepperToken)));
LOG((LF_CORDB,LL_INFO10000, "CS::SR: m_id:0x%zx | 0x%zx \n",
(size_t)m_id,
(size_t)LsPtrToCookie(pEvent->StepData.stepperToken)));

#ifdef _DEBUG
CordbAppDomain *pAppDomain = GetAppDomain();
Expand Down
2 changes: 1 addition & 1 deletion src/coreclr/debug/di/cordb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ BOOL WINAPI DbgDllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
WszGetModuleFileName(hInstance, rcFile);
LOG((LF_CORDB, LL_INFO10000,
"DI::DbgDllMain: load right side support from file '%s'\n",
rcFile.GetUnicode()));
rcFile.GetUTF8()));
}
#endif

Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/debug/di/divalue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ CordbReferenceValue::CordbReferenceValue(CordbAppDomain * pAppdomai
{
memset(&m_info, 0, sizeof(m_info));

LOG((LF_CORDB,LL_EVERYTHING,"CRV::CRV: this:0x%x\n",this));
LOG((LF_CORDB,LL_EVERYTHING,"CRV::CRV: this:0x%p\n",this));
m_size = sizeof(void *);

// now instantiate the value home
Expand Down Expand Up @@ -814,7 +814,7 @@ CordbReferenceValue::~CordbReferenceValue()
{
DTOR_ENTRY(this);

LOG((LF_CORDB,LL_EVERYTHING,"CRV::~CRV: this:0x%x\n",this));
LOG((LF_CORDB,LL_EVERYTHING,"CRV::~CRV: this:0x%p\n",this));

_ASSERTE(IsNeutered());
} // CordbReferenceValue::~CordbReferenceValue
Expand Down
18 changes: 9 additions & 9 deletions src/coreclr/debug/di/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1740,7 +1740,7 @@ HRESULT CordbModule::UpdateFunction(mdMethodDef funcMetaDataToken,
// go looking for it later and easier to put it in now than have code to insert it later.
if (!pOldVersion)
{
LOG((LF_ENC, LL_INFO10000, "CM::UF: adding %8.8x with version %d\n", funcMetaDataToken, enCVersion));
LOG((LF_ENC, LL_INFO10000, "CM::UF: adding %8.8x with version %zu\n", funcMetaDataToken, enCVersion));
HRESULT hr = S_OK;
EX_TRY
{
Expand All @@ -1756,7 +1756,7 @@ HRESULT CordbModule::UpdateFunction(mdMethodDef funcMetaDataToken,
// This method should not be called for versions that already exist
_ASSERTE( enCVersion > pOldVersion->GetEnCVersionNumber());

LOG((LF_ENC, LL_INFO10000, "CM::UF: updating %8.8x with version %d\n", funcMetaDataToken, enCVersion));
LOG((LF_ENC, LL_INFO10000, "CM::UF: updating %8.8x with version %zu\n", funcMetaDataToken, enCVersion));
// Create a new function object.
CordbFunction * pNewVersion = new (nothrow) CordbFunction(this, funcMetaDataToken, enCVersion);

Expand Down Expand Up @@ -2190,14 +2190,14 @@ HRESULT CordbModule::ApplyChangesInternal(ULONG cbMetaData,
{
// Done receiving update events
hr = retEvent->ApplyChangesResult.hr;
LOG((LF_CORDB, LL_INFO1000, "[%x] RCET::DRCE: EnC apply changes result %8.8x.\n", hr));
LOG((LF_CORDB, LL_INFO1000, "[%x] RCET::DRCE: EnC apply changes result %8.8x.\n", GetCurrentThreadId(), hr));
break;
}

_ASSERTE(retEvent->type == DB_IPCE_ENC_UPDATE_FUNCTION ||
retEvent->type == DB_IPCE_ENC_ADD_FUNCTION ||
retEvent->type == DB_IPCE_ENC_ADD_FIELD);
LOG((LF_CORDB, LL_INFO1000, "[%x] RCET::DRCE: EnC %s %8.8x to version %d.\n",
LOG((LF_CORDB, LL_INFO1000, "[%x] RCET::DRCE: EnC %s %8.8x to version %zu.\n",
GetCurrentThreadId(),
retEvent->type == DB_IPCE_ENC_UPDATE_FUNCTION ? "Update function" :
retEvent->type == DB_IPCE_ENC_ADD_FUNCTION ? "Add function" : "Add field",
Expand Down Expand Up @@ -2928,7 +2928,7 @@ HRESULT CordbCode::GetVersionNumber( ULONG32 *nVersion)
FAIL_IF_NEUTERED(this);
VALIDATE_POINTER_TO_OBJECT(nVersion, ULONG32 *);

LOG((LF_CORDB,LL_INFO10000,"R:CC:GVN:Returning 0x%x "
LOG((LF_CORDB,LL_INFO10000,"R:CC:GVN:Returning 0x%zx "
"as version\n",m_nVersion));

*nVersion = (ULONG32)m_nVersion;
Expand Down Expand Up @@ -3130,7 +3130,7 @@ HRESULT CordbILCode::GetLocalVarSig(SigParser *pLocalSigParser,
}
IfFailRet(hr);

LOG((LF_CORDB, LL_INFO100000, "CIC::GLVS creating sig parser sig=0x%x size=0x%x\n", localSignature, size));
LOG((LF_CORDB, LL_INFO100000, "CIC::GLVS creating sig parser sig=%p size=0x%x\n", localSignature, size));
SigParser sigParser = SigParser(localSignature, size);

uint32_t data;
Expand Down Expand Up @@ -5090,10 +5090,10 @@ CordbNativeCode * CordbModule::LookupOrCreateNativeCode(mdMethodDef methodToken,
// We didn't have an instance, so we'll build one and add it to the hash table
LOG((LF_CORDB,
LL_INFO10000,
"R:CT::RSCreating code w/ ver:0x%x, md:0x%x, nativeStart=0x%08x, nativeSize=0x%08x\n",
"R:CT::RSCreating code w/ ver:0x%zx, md:0x%zx, nativeStart=0x%08zx, nativeSize=0x%08x\n",
codeInfo.encVersion,
VmPtrToCookie(codeInfo.vmNativeCodeMethodDescToken),
codeInfo.m_rgCodeRegions[kHot].pAddress,
(size_t)VmPtrToCookie(codeInfo.vmNativeCodeMethodDescToken),
(size_t)codeInfo.m_rgCodeRegions[kHot].pAddress,
codeInfo.m_rgCodeRegions[kHot].cbSize));

// Lookup the function object that this code should be bound to
Expand Down
Loading
Loading