From c48f30ca53695faa09683fc8f506463c07f9c2c3 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Tue, 16 Jun 2020 22:31:39 +0200 Subject: Fixup remaining missed cases of debugging --- uring.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'uring.c') 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; } -- cgit v1.2.3