aboutsummaryrefslogtreecommitdiff
path: root/src/obj.c
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2016-03-31 17:05:37 -0400
committerFranklin Wei <git@fwei.tk>2016-03-31 17:05:37 -0400
commit207850187986568b17ea9b2d9c29510cb00bf9da (patch)
treeaee87cf74280e8f9dd29aca88d12a638f37b2493 /src/obj.c
parentb3699dd5df18db3c060bb88a74c1b05e37154c76 (diff)
downloadnetcosm-207850187986568b17ea9b2d9c29510cb00bf9da.zip
netcosm-207850187986568b17ea9b2d9c29510cb00bf9da.tar.gz
netcosm-207850187986568b17ea9b2d9c29510cb00bf9da.tar.bz2
netcosm-207850187986568b17ea9b2d9c29510cb00bf9da.tar.xz
lots of things
Diffstat (limited to 'src/obj.c')
-rw-r--r--src/obj.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/obj.c b/src/obj.c
index deeb30d..296fbb5 100644
--- a/src/obj.c
+++ b/src/obj.c
@@ -144,7 +144,7 @@ struct object_t *obj_copy(struct object_t *obj)
struct object_t *obj_dup(struct object_t *obj)
{
- debugf("Adding an object reference to #%lu.\n", obj->id);
+ debugf("Adding an object reference to #%" PRI_OBJID ".\n", obj->id);
++obj->refcount;
return obj;
}
@@ -154,11 +154,11 @@ void obj_free(void *ptr)
struct object_t *obj = ptr;
--obj->refcount;
- debugf("Freeing an object reference for #%lu (%s, %d).\n", obj->id, obj->name, obj->refcount);
+ debugf("Freeing an object reference for #%" PRI_OBJID" (%s, %d).\n", obj->id, obj->name, obj->refcount);
if(!obj->refcount)
{
- debugf("Freeing object #%lu\n", obj->id);
+ debugf("Freeing object #%"PRI_OBJID"\n", obj->id);
if(obj->class->hook_destroy)
obj->class->hook_destroy(obj);