add number of bytes to +RTS -DS leak reports
authorSimon Marlow <marlowsd@gmail.com>
Fri, 24 Jul 2009 15:00:10 +0000 (15:00 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Fri, 24 Jul 2009 15:00:10 +0000 (15:00 +0000)
rts/RtsUtils.c

index 3091aa1..6906619 100644 (file)
@@ -110,8 +110,8 @@ shutdownAllocator(void)
         free(prev);
         if (a == NULL) return;
         IF_DEBUG(sanity,
-                 debugBelch("Warning: %p still allocated at shutdown\n",
-                            a->addr);)
+                 debugBelch("Warning: %ld bytes at %p still allocated at shutdown\n",
+                            a->len, a->addr);)
         prev = a;
     }
 }