@@ -466,7 +466,7 @@ ILStubLinker::LogILInstruction(
466466
467467 if (isLabeled)
468468 {
469- strLabel.Printf (W (" IL_%04x :" ), curOffset);
469+ strLabel.Printf (W (" IL_%04Ix :" ), curOffset);
470470 }
471471 else
472472 {
@@ -502,7 +502,7 @@ ILStubLinker::LogILInstruction(
502502 {
503503 size_t branchDistance = (size_t )pInstruction->uArg ;
504504 size_t targetOffset = curOffset + s_rgbOpcodeSizes[instr] + branchDistance;
505- strArgument.Printf (W (" IL_%04x " ), targetOffset);
505+ strArgument.Printf (W (" IL_%04Ix " ), targetOffset);
506506 }
507507 else if ((ILCodeStream::ILInstrEnum)CEE_NOP == instr)
508508 {
@@ -520,7 +520,7 @@ ILStubLinker::LogILInstruction(
520520 case ShortInlineVar:
521521 case ShortInlineI:
522522 case InlineI:
523- strArgument.Printf (W (" 0x%x " ), pInstruction->uArg );
523+ strArgument.Printf (W (" 0x%Ix " ), pInstruction->uArg );
524524 break ;
525525
526526 case InlineI8:
@@ -536,7 +536,7 @@ ILStubLinker::LogILInstruction(
536536 case InlineTok:
537537 // No token value when we dump IL for ETW
538538 if (pDumpILStubCode == NULL )
539- strArgument.Printf (W (" 0x%08x " ), pInstruction->uArg );
539+ strArgument.Printf (W (" 0x%08Ix " ), pInstruction->uArg );
540540
541541 // Dump to szTokenNameBuffer if logging, otherwise dump to szArgumentBuffer to avoid an extra space because we are omitting the token
542542 _ASSERTE (FitsIn<mdToken>(pInstruction->uArg ));
@@ -620,11 +620,11 @@ ILStubLinker::LogILStubWorker(
620620 {
621621 if (pDumpILStubCode)
622622 {
623- pDumpILStubCode->AppendPrintf (W (" IL_%04x :\n " ), *pcbCode);
623+ pDumpILStubCode->AppendPrintf (W (" IL_%04Ix :\n " ), *pcbCode);
624624 }
625625 else
626626 {
627- LOG ((LF_STUBS, LL_INFO1000, " IL_%04x :\n " , *pcbCode));
627+ LOG ((LF_STUBS, LL_INFO1000, " IL_%04Ix :\n " , *pcbCode));
628628 }
629629 }
630630}
0 commit comments