diff --git a/thread.c b/thread.c index 184fed6313..dfd2b2129a 100644 --- a/thread.c +++ b/thread.c @@ -4718,7 +4718,7 @@ thread_shield_get_mutex(VALUE self) { VALUE mutex = GetThreadShieldPtr(self); if (!mutex) - rb_raise(rb_eThreadError, "destroyed thread shield - %p", (void *)mutex); + rb_raise(rb_eThreadError, "destroyed thread shield - %p", (void *)self); return mutex; }