Skip to content

Commit 018d47c

Browse files
committed
comment
1 parent a18b04f commit 018d47c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/coreclr/tools/StressLogAnalyzer/StressLogDump.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ void formatOutput(struct IDebugDataSpaces* memCallBack, ___in FILE* file, __inou
154154
{
155155
while (isdigit(*ptr))
156156
{
157+
// This is enough to handle %5s. It doesn't need to handle %0.3f because the below code will
158+
// work in the sense that it consider the specifier finished at the '.', but that's good enough
159+
// because the entire specifier will end up being passed to fprintf later.
160+
//
161+
// To handle %5p, we would need to parse and use the width specifier in the 'p' code below.
157162
ptr++;
158163
}
159164

0 commit comments

Comments
 (0)