projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d765d81
)
bpo-37990: fix gc stats (GH-15626)
author
Inada Naoki
<songofacandy@gmail.com>
Sat, 31 Aug 2019 00:13:42 +0000
(09:13 +0900)
committer
GitHub
<noreply@github.com>
Sat, 31 Aug 2019 00:13:42 +0000
(09:13 +0900)
Modules/gcmodule.c
patch
|
blob
|
history
diff --git
a/Modules/gcmodule.c
b/Modules/gcmodule.c
index 7586cd3e0515e2f7a96cd01bc628a4bbb4b8f3ac..134f6d168c9616a86d9f4e6d1e26a00a5a42fac9 100644
(file)
--- a/
Modules/gcmodule.c
+++ b/
Modules/gcmodule.c
@@
-1115,8
+1115,9
@@
collect(struct _gc_runtime_state *state, int generation,
}
if (state->debug & DEBUG_STATS) {
double d = _PyTime_AsSecondsDouble(_PyTime_GetMonotonicClock() - t1);
- PySys_FormatStderr(
- "gc: done, %zd unreachable, %zd uncollectable, %.4fs elapsed\n",
+ PySys_WriteStderr(
+ "gc: done, %" PY_FORMAT_SIZE_T "d unreachable, "
+ "%" PY_FORMAT_SIZE_T "d uncollectable, %.4fs elapsed\n",
n+m, n, d);
}