diff options
| author | Franklin Wei <git@fwei.tk> | 2016-03-31 17:05:37 -0400 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2016-03-31 17:05:37 -0400 |
| commit | 207850187986568b17ea9b2d9c29510cb00bf9da (patch) | |
| tree | aee87cf74280e8f9dd29aca88d12a638f37b2493 /src/obj.c | |
| parent | b3699dd5df18db3c060bb88a74c1b05e37154c76 (diff) | |
| download | netcosm-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |