]> granicus.if.org Git - gc/commitdiff
2011-05-31 Ivan Maidanski <ivmai@mail.ru>
authorivmai <ivmai>
Tue, 31 May 2011 08:41:20 +0000 (08:41 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:59 +0000 (21:06 +0400)
* tests/test.c (check_heap_stats): Adjust printf format specifier
for max_heap_sz; cast max_heap_sz accordingly.

ChangeLog
tests/test.c

index c0cc70f03a1ef0f100db88afaaf38d046282aec3..4eb5685c84a4b8d30a6cd2a86aaf2b62cee648de 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-31  Ivan Maidanski  <ivmai@mail.ru>
+
+       * tests/test.c (check_heap_stats): Adjust printf format specifier
+       for max_heap_sz; cast max_heap_sz accordingly.
+
 2011-05-30  Ivan Maidanski  <ivmai@mail.ru>
 
        * doc/README.solaris2: Add note.
index e7826c2bef27552ea8c93530e73827611c16c6f2..153d9775b64b632ec965b2cd03cfb4b08bc04291 100644 (file)
@@ -1345,9 +1345,9 @@ void check_heap_stats(void)
     }
     if (GC_get_heap_size() + GC_get_unmapped_bytes() > max_heap_sz) {
         GC_printf("Unexpected heap growth - collector may be broken"
-                  " (heapsize: %lu, expected: %u)\n",
+                  " (heapsize: %lu, expected: %lu)\n",
             (unsigned long)(GC_get_heap_size() + GC_get_unmapped_bytes()),
-            max_heap_sz);
+            (unsigned long)max_heap_sz);
         FAIL;
     }
 #   ifdef THREADS