Fix wrong sprinf_s format string in gtGetArgMsg getGetLateArgMsg on ARM32 (#19536)
authorEgor Chesakov <Egor.Chesakov@microsoft.com>
Sun, 19 Aug 2018 01:03:06 +0000 (18:03 -0700)
committerGitHub <noreply@github.com>
Sun, 19 Aug 2018 01:03:06 +0000 (18:03 -0700)
src/jit/gentree.cpp

index af59dfe..c3ce836 100644 (file)
@@ -11496,7 +11496,8 @@ void Compiler::gtGetArgMsg(
                     else
                     {
                         unsigned stackSlot = listCount - curArgTabEntry->numRegs;
-                        sprintf_s(bufp, bufLength, "arg%d m%d out+%s%c", argNum, listCount, stackSlot, 0);
+                        sprintf_s(bufp, bufLength, "arg%d m%d out+%02x%c", argNum, listCount,
+                                  stackSlot * TARGET_POINTER_SIZE, 0);
                     }
                 }
                 return;
@@ -11625,7 +11626,8 @@ void Compiler::gtGetLateArgMsg(
                 else
                 {
                     unsigned stackSlot = listCount - curArgTabEntry->numRegs;
-                    sprintf_s(bufp, bufLength, "arg%d m%d out+%s%c", argNum, listCount, stackSlot, 0);
+                    sprintf_s(bufp, bufLength, "arg%d m%d out+%02x%c", argNum, listCount,
+                              stackSlot * TARGET_POINTER_SIZE, 0);
                 }
             }
             return;