From: Ivan Maidanski Date: Wed, 17 Apr 2019 19:43:16 +0000 (+0300) Subject: Simplify logged message in scratch_recycle X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74035e232e2f6ce86e95b4237fa256f0c83721fc;p=gc Simplify logged message in scratch_recycle * mark.c (GC_scratch_recycle_inner): Do not pass bytes variable to GC_COND_LOG_PRINTF(). --- diff --git a/mark.c b/mark.c index 7bf17d29..77e9dbb1 100644 --- a/mark.c +++ b/mark.c @@ -1263,9 +1263,8 @@ GC_INNER void GC_scratch_recycle_inner(void *ptr, size_t bytes) if (page_offset != 0) displ = GC_page_size - page_offset; recycled_bytes = (bytes - displ) & ~(GC_page_size - 1); - GC_COND_LOG_PRINTF("Recycle %lu/%lu scratch-allocated bytes at %p\n", - (unsigned long)recycled_bytes, (unsigned long)bytes, - ptr); + GC_COND_LOG_PRINTF("Recycle %lu scratch-allocated bytes at %p\n", + (unsigned long)recycled_bytes, ptr); if (recycled_bytes > 0) GC_add_to_heap((struct hblk *)((word)ptr + displ), recycled_bytes); }