summaryrefslogtreecommitdiff
path: root/ext/dl/cptr.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-01 22:00:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-01 22:00:42 +0000
commitbe30c131daf56f1f3143fbc323e986c496c72e38 (patch)
treee5d2a049b9fb5ef2d23a269ef177846764ee8a04 /ext/dl/cptr.c
parent7271a56417bde7f0d4a60b31c66b339d18cd5d35 (diff)
* ext/dl/cptr.c (rb_dlptr_inspect): fix format specifiers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/cptr.c')
-rw-r--r--ext/dl/cptr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/cptr.c b/ext/dl/cptr.c
index 11ecf6f81d7..8ae1829efa0 100644
--- a/ext/dl/cptr.c
+++ b/ext/dl/cptr.c
@@ -388,7 +388,7 @@ rb_dlptr_inspect(VALUE self)
char str[1024];
TypedData_Get_Struct(self, struct ptr_data, &dlptr_data_type, data);
- snprintf(str, 1023, "#<%s:%p ptr=%#lx size=%ld free=%#lx>",
+ snprintf(str, 1023, "#<%s:%p ptr=%p size=%ld free=%p>",
rb_class2name(CLASS_OF(self)), data, data->ptr, data->size, data->free);
return rb_str_new2(str);
}