summaryrefslogtreecommitdiff
path: root/uring.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-16 22:31:39 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-16 22:31:39 +0200
commitc48f30ca53695faa09683fc8f506463c07f9c2c3 (patch)
tree80577fb4299ef6e91339be3412b9dbfd432e445a /uring.c
parentbf3df84cdfbdb0da776d8fb2af9fa2cf53eec985 (diff)
Fixup remaining missed cases of debugging
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 dc095c8..10eac79 100644
--- a/uring.c
+++ b/uring.c
@@ -76,9 +76,9 @@ uring_task_refdump(struct uring_task *task)
memcpy(dst, tmp->name, strlen(tmp->name));
}
- fprintf(stderr, "%s (0x%p parent 0x%p free 0x%p fd %i ref %u)\n",
- buf, task, task->parent, task->free, task->fd,
- task->refcount);
+ debug(DBG_REF, "%s (0x%p parent 0x%p free 0x%p fd %i ref %u)\n",
+ buf, task, task->parent, task->free, task->fd,
+ task->refcount);
}
/*
@@ -562,7 +562,7 @@ uring_poll_cancel(struct cfg *cfg, struct uring_task *task)
struct io_uring_sqe *sqe;
if (task->fd < 0) {
- fprintf(stderr, "uring_poll_cancel called with no fd set\n");
+ error("no fd set\n");
return;
}