summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-03-21 09:33:53 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-03-21 09:33:53 +0100
commit49c786331a4f7ef409437bd3c08202b5a5d73bed (patch)
tree8099de5369d0d54e8b7b07f3b3d6d94bc276da9d
parentcd9caf09d1878141871d46a5110648b119b7cb31 (diff)
downloadNim-49c786331a4f7ef409437bd3c08202b5a5d73bed.tar.gz
fixes -d:nimTypeNames leak detection regression
-rw-r--r--lib/system/gc_common.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/system/gc_common.nim b/lib/system/gc_common.nim
index b86ef84f0..03cadaf90 100644
--- a/lib/system/gc_common.nim
+++ b/lib/system/gc_common.nim
@@ -61,15 +61,15 @@ when defined(nimTypeNames):
       inc totalAllocated, it.sizes
     sortInstances(a, n)
     for i in 0 .. n-1:
-      c_fprintf(stdout, "[Heap] %s: #%ld; bytes: %ld\n", a[i][0], a[i][1], a[i][2])
-    c_fprintf(stdout, "[Heap] total number of bytes: %ld\n", totalAllocated)
+      c_fprintf(cstdout, "[Heap] %s: #%ld; bytes: %ld\n", a[i][0], a[i][1], a[i][2])
+    c_fprintf(cstdout, "[Heap] total number of bytes: %ld\n", totalAllocated)
     when defined(nimTypeNames):
       let (allocs, deallocs) = getMemCounters()
-      c_fprintf(stdout, "[Heap] allocs/deallocs: %ld/%ld\n", allocs, deallocs)
+      c_fprintf(cstdout, "[Heap] allocs/deallocs: %ld/%ld\n", allocs, deallocs)
 
   when defined(nimGcRefLeak):
     proc oomhandler() =
-      c_fprintf(stdout, "[Heap] ROOTS: #%ld\n", gch.additionalRoots.len)
+      c_fprintf(cstdout, "[Heap] ROOTS: #%ld\n", gch.additionalRoots.len)
       writeLeaks()
 
     outOfMemHook = oomhandler