Skip to content

Commit e9c52f5

Browse files
methanelisroach
authored andcommitted
bpo-37990: fix gc stats (pythonGH-15626)
1 parent 0176b46 commit e9c52f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Modules/gcmodule.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,8 +1115,9 @@ collect(struct _gc_runtime_state *state, int generation,
11151115
}
11161116
if (state->debug & DEBUG_STATS) {
11171117
double d = _PyTime_AsSecondsDouble(_PyTime_GetMonotonicClock() - t1);
1118-
PySys_FormatStderr(
1119-
"gc: done, %zd unreachable, %zd uncollectable, %.4fs elapsed\n",
1118+
PySys_WriteStderr(
1119+
"gc: done, %" PY_FORMAT_SIZE_T "d unreachable, "
1120+
"%" PY_FORMAT_SIZE_T "d uncollectable, %.4fs elapsed\n",
11201121
n+m, n, d);
11211122
}
11221123

0 commit comments

Comments
 (0)