diff options
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2679,14 +2679,14 @@ rb_thread_safe_level(VALUE thread) static VALUE rb_thread_inspect(VALUE thread) { - const char *cname = rb_obj_classname(thread); + VALUE cname = rb_class_path(rb_obj_class(thread)); rb_thread_t *th; const char *status; VALUE str; GetThreadPtr(thread, th); status = thread_status_name(th); - str = rb_sprintf("#<%s:%p %s>", cname, (void *)thread, status); + str = rb_sprintf("#<%"PRIsVALUE":%p %s>", cname, (void *)thread, status); OBJ_INFECT(str, thread); return str; |