diff options
author | Jan Kotas <jkotas@microsoft.com> | 2015-08-05 16:00:00 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2015-08-05 16:14:04 -0700 |
commit | e222536b41729093647689e7507e944fed490d08 (patch) | |
tree | 692391267ca6c3d2576fd3771ce7f78722238900 /src/jit | |
parent | c32d22b11658f006b19b3094984edefeedf03215 (diff) | |
download | coreclr-e222536b41729093647689e7507e944fed490d08.tar.gz coreclr-e222536b41729093647689e7507e944fed490d08.tar.bz2 coreclr-e222536b41729093647689e7507e944fed490d08.zip |
Fix build breaks on VS2015 RTM
Most of the changes are about mismatches between printf formatting strings and argument types.
Fix #1294.
Diffstat (limited to 'src/jit')
-rw-r--r-- | src/jit/compiler.cpp | 6 | ||||
-rw-r--r-- | src/jit/gentree.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
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); |