From: ivmai Date: Tue, 31 May 2011 08:41:20 +0000 (+0000) Subject: 2011-05-31 Ivan Maidanski X-Git-Tag: gc7_2alpha6~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66289a86c874bd64660d9a5b49f2759c8096f429;p=gc 2011-05-31 Ivan Maidanski * tests/test.c (check_heap_stats): Adjust printf format specifier for max_heap_sz; cast max_heap_sz accordingly. --- diff --git a/ChangeLog b/ChangeLog index c0cc70f0..4eb5685c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-05-31 Ivan Maidanski + + * tests/test.c (check_heap_stats): Adjust printf format specifier + for max_heap_sz; cast max_heap_sz accordingly. + 2011-05-30 Ivan Maidanski * doc/README.solaris2: Add note. diff --git a/tests/test.c b/tests/test.c index e7826c2b..153d9775 100644 --- a/tests/test.c +++ b/tests/test.c @@ -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