summaryrefslogtreecommitdiff
path: root/uring.c
diff options
context:
space:
mode:
Diffstat (limited to 'uring.c')
-rw-r--r--uring.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/uring.c b/uring.c
index f08ba9e..88309f8 100644
--- a/uring.c
+++ b/uring.c
@@ -112,8 +112,8 @@ uring_task_put(struct cfg *cfg, struct uring_task *task)
assert_return(cfg && task);
- debug(DBG_REF, "task %s (%p), refcount %u",
- task->name, task, task->refcount);
+ debug(DBG_REF, "task %s (%p), refcount %u -> %u",
+ task->name, task, task->refcount, task->refcount - 1);
task->refcount--;
@@ -144,8 +144,8 @@ uring_task_get(struct cfg *cfg, struct uring_task *task)
{
assert_return(cfg && task);
- debug(DBG_REF, "task %s (%p), refcount %u",
- task->name, task, task->refcount);
+ debug(DBG_REF, "task %s (%p), refcount %u -> %u",
+ task->name, task, task->refcount, task->refcount + 1);
if (task->refcount < 0)
error("Negative refcount!");