summaryrefslogtreecommitdiff
path: root/ext/syslog
diff options
context:
space:
mode:
Diffstat (limited to 'ext/syslog')
-rw-r--r--ext/syslog/syslog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/syslog/syslog.c b/ext/syslog/syslog.c
index 482a0a2eee..8ef722e1c0 100644
--- a/ext/syslog/syslog.c
+++ b/ext/syslog/syslog.c
@@ -327,10 +327,10 @@ static VALUE mSyslog_inspect(VALUE self)
Check_Type(self, T_MODULE);
if (!syslog_opened)
- return rb_sprintf("<#%s: opened=false>", rb_class2name(self));
+ return rb_sprintf("<#%"PRIsVALUE": opened=false>", self);
- return rb_sprintf("<#%s: opened=true, ident=\"%s\", options=%d, facility=%d, mask=%d>",
- rb_class2name(self),
+ return rb_sprintf("<#%"PRIsVALUE": opened=true, ident=\"%s\", options=%d, facility=%d, mask=%d>",
+ self,
syslog_ident,
syslog_options,
syslog_facility,