summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-10 12:24:06 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-10 12:24:06 +0200
commitb269ef065938e598ab8bd99f73306aa7883e4257 (patch)
tree1bf6aeb4d1a83929b68c8d06b01bf8a434e8de03 /Python/pythonrun.c
parent82ad4d2a8d5b7b3147af9cf6406fca37d493e6ee (diff)
parent7dc68556d28f052d990549246963b63b4021ba4c (diff)
downloadcpython-b269ef065938e598ab8bd99f73306aa7883e4257.tar.gz
Issue #6975: os.path.realpath() now correctly resolves multiple nested symlinks on POSIX platforms.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index dd32017574..f0d8550773 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -38,9 +38,10 @@
#ifndef Py_REF_DEBUG
#define PRINT_TOTAL_REFS()
#else /* Py_REF_DEBUG */
-#define PRINT_TOTAL_REFS() fprintf(stderr, \
- "[%" PY_FORMAT_SIZE_T "d refs]\n", \
- _Py_GetRefTotal())
+#define PRINT_TOTAL_REFS() fprintf(stderr, \
+ "[%" PY_FORMAT_SIZE_T "d refs, " \
+ "%" PY_FORMAT_SIZE_T "d blocks]\n", \
+ _Py_GetRefTotal(), _Py_GetAllocatedBlocks())
#endif
#ifdef __cplusplus