From 1723931102da715e5d9c8e5fbc8ab3756eaa1151 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 16 Jun 2008 14:56:14 +0000 Subject: [PATCH] * thread.c (thread_start_func_2): use PRIxVALUE to format a VALUE. * thread.c (ruby_native_thread_p): removed unused declaration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thread.c b/thread.c index 262320f7ae..fea21a85da 100644 --- a/thread.c +++ b/thread.c @@ -376,7 +376,8 @@ thread_start_func_2(rb_thread_t *th, VALUE *stack_start, VALUE *register_stack_s /* locking_mutex must be Qfalse */ if (th->locking_mutex != Qfalse) { - rb_bug("thread_start_func_2: locking_mutex must be NULL (%p:%ld)", th, th->locking_mutex); + rb_bug("thread_start_func_2: locking_mutex must not be set (%p:%"PRIxVALUE")", + th, th->locking_mutex); } /* unlock all locking mutexes */ @@ -3401,7 +3402,6 @@ Init_Thread(void) int ruby_native_thread_p(void) { - rb_thread_t *rb_thread_check_ptr(rb_thread_t *ptr); rb_thread_t *th = ruby_thread_from_native(); return th ? Qtrue : Qfalse;