summaryrefslogtreecommitdiff
path: root/ext/syslog
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-13 00:57:41 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-13 00:57:41 (GMT)
commit74947c9d1ee149231b34247d0f930a56f424a4c1 (patch)
tree1349fec38eb931bfe1cfb467883958255049a388 /ext/syslog
parent5f11c4104258ab4fbb4927754de14e8ef2d5a8bd (diff)
ext: use rb_sprintf() and rb_vsprintf() with PRIsVALUE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 482a0a2..8ef722e 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,