summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-16 14:56:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-16 14:56:14 +0000
commit1723931102da715e5d9c8e5fbc8ab3756eaa1151 (patch)
treeda87dabe3587df4f2f006d8cfac0f5d259b2f81f /thread.c
parent51fbc0699cb972d6f328b15ddfd2173bb8cebe70 (diff)
* 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
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files 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;