From 4c0f82eb5b13e436a93497eaf23d965efa35a39e Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Fri, 31 Mar 2023 18:15:04 +0900 Subject: [PATCH] remove "\n" for `RUBY_DEBUG_LOG()` because `RUBY_DEBUG_LOG()` add "\n" at the end of message. --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thread.c b/thread.c index 57bd2e0d9c..f5a6f9e34b 100644 --- a/thread.c +++ b/thread.c @@ -2321,7 +2321,7 @@ rb_threadptr_execute_interrupts(rb_thread_t *th, int blocking_timing) /* exception from another thread */ if (pending_interrupt && threadptr_pending_interrupt_active_p(th)) { VALUE err = rb_threadptr_pending_interrupt_deque(th, blocking_timing ? INTERRUPT_ON_BLOCKING : INTERRUPT_NONE); - RUBY_DEBUG_LOG("err:%"PRIdVALUE"\n", err); + RUBY_DEBUG_LOG("err:%"PRIdVALUE, err); ret = TRUE; if (UNDEF_P(err)) {