From 74035e232e2f6ce86e95b4237fa256f0c83721fc Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 17 Apr 2019 22:43:16 +0300 Subject: [PATCH] Simplify logged message in scratch_recycle * mark.c (GC_scratch_recycle_inner): Do not pass bytes variable to GC_COND_LOG_PRINTF(). --- mark.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mark.c b/mark.c index 7bf17d2..77e9dbb 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); } -- 2.7.4