summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-05-20 14:00:14 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-05-20 21:43:30 +0900
commit8d242a33af19672977dcdcb8d32e9ad547bc0141 (patch)
tree3e15a99988ed8b084b6af40c9f94dae33a5082eb /thread_pthread.c
parent87217f26f120611d009f1b178d3cc5eaf1b8b515 (diff)
`rb_bug` prints a newline after the message
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index d9af238c88..3bb6b3d980 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -1869,7 +1869,7 @@ ubf_timer_create(rb_serial_t fork_gen)
rb_atomic_t prev = timer_state_exchange(RTIMER_DISARM);
if (prev != RTIMER_DEAD) {
- rb_bug("timer_posix was not dead: %u\n", (unsigned)prev);
+ rb_bug("timer_posix was not dead: %u", (unsigned)prev);
}
timer_posix.fork_gen = fork_gen;
}
@@ -1931,7 +1931,7 @@ ubf_timer_disarm(void)
return;
case RTIMER_DEAD: return; /* stay dead */
default:
- rb_bug("UBF_TIMER_POSIX bad state: %u\n", (unsigned)prev);
+ rb_bug("UBF_TIMER_POSIX bad state: %u", (unsigned)prev);
}
#elif UBF_TIMER == UBF_TIMER_PTHREAD