Skip to content

Commit

Permalink
Pass the argument to formatting function (#67996)
Browse files Browse the repository at this point in the history
* pass block number

* jit formatting

* fix another issue

* Revert "fix another issue"

This reverts commit 637c340.

* fix some other formatting issues
  • Loading branch information
kunalspathak committed Apr 14, 2022
1 parent 250fda5 commit 73665cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/coreclr/jit/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9134,7 +9134,7 @@ Compiler::LoopDsc* dFindLoop(unsigned loopNum)

if (loopNum >= comp->optLoopCount)
{
printf("loopNum %u out of range\n");
printf("loopNum %u out of range\n", loopNum);
return nullptr;
}

Expand Down
3 changes: 2 additions & 1 deletion src/coreclr/jit/fgbasic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3589,7 +3589,8 @@ void Compiler::fgCheckForLoopsInHandlers()
{
if (blk->bbFlags & BBF_BACKWARD_JUMP_TARGET)
{
JITDUMP("\nHander block " FMT_BB "is backward jump target; can't have patchpoints in this method\n");
JITDUMP("\nHander block " FMT_BB "is backward jump target; can't have patchpoints in this method\n",
blk->bbNum);
compHasBackwardJumpInHandler = true;
break;
}
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/jit/lower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ void Lowering::MakeSrcContained(GenTree* parentNode, GenTree* childNode) const

if (!isSafeToContainMem)
{
JITDUMP("** Unsafe mem containment of [%06u] in [%06u}, comp->dspTreeID(childNode), "
"comp->dspTreeID(parentNode)\n");
JITDUMP("** Unsafe mem containment of [%06u] in [%06u}\n", comp->dspTreeID(childNode),
comp->dspTreeID(parentNode));
assert(isSafeToContainMem);
}
}
Expand Down

0 comments on commit 73665cc

Please sign in to comment.