]> granicus.if.org Git - gc/commitdiff
Simplify logged message in scratch_recycle
authorIvan Maidanski <ivmai@mail.ru>
Wed, 17 Apr 2019 19:43:16 +0000 (22:43 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 17 Apr 2019 19:43:16 +0000 (22:43 +0300)
* mark.c (GC_scratch_recycle_inner): Do not pass bytes variable to
GC_COND_LOG_PRINTF().

mark.c

diff --git a/mark.c b/mark.c
index 7bf17d2948cb8723b1551617e5106bb58e67a0fa..77e9dbb1e3a16743d5fa878a037ca0db8a1db9ce 100644 (file)
--- 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);
   }