From e222536b41729093647689e7507e944fed490d08 Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Wed, 5 Aug 2015 16:00:00 -0700 Subject: Fix build breaks on VS2015 RTM Most of the changes are about mismatches between printf formatting strings and argument types. Fix #1294. --- src/jit/compiler.cpp | 6 +++--- src/jit/gentree.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/jit') diff --git a/src/jit/compiler.cpp b/src/jit/compiler.cpp index 5b5c16508e..427d778b90 100644 --- a/src/jit/compiler.cpp +++ b/src/jit/compiler.cpp @@ -5936,13 +5936,13 @@ void Compiler::AggregateMemStats::Print(FILE* f) fprintf(f, "For %9u methods:\n", nMethods); fprintf(f, " count: %12u (avg %7u per method)\n", allocCnt, allocCnt / nMethods); - fprintf(f, " alloc size : %12llu (avg %7u per method)\n", + fprintf(f, " alloc size : %12llu (avg %7llu per method)\n", allocSz, allocSz / nMethods); fprintf(f, " max alloc : %12llu\n", allocSzMax); fprintf(f, "\n"); - fprintf(f, " nraAlloc : %12llu (avg %7u per method)\n", + fprintf(f, " nraAlloc : %12llu (avg %7llu per method)\n", nraTotalSizeAlloc, nraTotalSizeAlloc / nMethods); - fprintf(f, " nraUsed : %12llu (avg %7u per method)\n", + fprintf(f, " nraUsed : %12llu (avg %7llu per method)\n", nraTotalSizeUsed, nraTotalSizeUsed / nMethods); PrintByKind(f); } diff --git a/src/jit/gentree.cpp b/src/jit/gentree.cpp index 680fb338a3..fafe416c43 100644 --- a/src/jit/gentree.cpp +++ b/src/jit/gentree.cpp @@ -8596,13 +8596,13 @@ GenTreePtr Compiler::gtDispLinearTree(GenTreeStmt* curStmt, // special case for child of initblk and cpblk // op1 is dst, op2 is src, and op2 must show up first assert(tree->OperIsBlkOp()); - sprintf_s(bufp, sizeof(buf), "Source", listElemNum, 0); + sprintf_s(bufp, sizeof(buf), "Source"); indentStack->Push(indentInfo); nextLinearNode = gtDispLinearTree(curStmt, nextLinearNode, child->gtOp.gtOp2, indentStack, bufp); indentStack->Pop(); indentInfo = IIArc; - sprintf_s(bufp, sizeof(buf), "Destination", listElemNum, 0); + sprintf_s(bufp, sizeof(buf), "Destination"); indentStack->Push(indentInfo); nextLinearNode = gtDispLinearTree(curStmt, nextLinearNode, child->gtOp.gtOp1, indentStack, bufp); indentStack->Pop(); @@ -8641,7 +8641,7 @@ GenTreePtr Compiler::gtDispLinearTree(GenTreeStmt* curStmt, } else { - sprintf_s(bufp, sizeof(buf), "List Item %d", listElemNum, 0); + sprintf_s(bufp, sizeof(buf), "List Item %d", listElemNum); } indentStack->Push(indentInfo); nextLinearNode = gtDispLinearTree(curStmt, nextLinearNode, listElem, indentStack, bufp); -- cgit v1.2.3