diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-16 14:56:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-16 14:56:14 +0000 |
commit | 1723931102da715e5d9c8e5fbc8ab3756eaa1151 (patch) | |
tree | da87dabe3587df4f2f006d8cfac0f5d259b2f81f /thread.c | |
parent | 51fbc0699cb972d6f328b15ddfd2173bb8cebe70 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |