diff options
Diffstat (limited to 'uring.c')
-rw-r--r-- | uring.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -34,14 +34,14 @@ get_sqe(struct cfg *cfg, struct uring_task *task) struct io_uring_sqe *sqe; if (!cfg || !task) - die("%s: invalid parameters\n", __func__); + die("invalid parameters"); sqe = io_uring_get_sqe(&cfg->uev->uring); if (!sqe) { io_uring_submit(&cfg->uev->uring); sqe = io_uring_get_sqe(&cfg->uev->uring); if (!sqe) - perrordie("Failed to get an sqe!\n"); + perrordie("failed to get an sqe!"); } sqe_count++; @@ -194,10 +194,10 @@ struct uring_task * uring_parent(struct cfg *cfg) { if (!cfg) - die("%s: called with null cfg\n"); + die("called with null cfg"); if (!cfg->uev) - die("%s: called with uninitialized uring\n"); + die("called with uninitialized uring"); return &cfg->uev->task; } @@ -211,10 +211,10 @@ uring_task_init(struct uring_task *task, const char *name, if (first) first = false; else if (!parent) - die("uring_task_init called without a parent\n"); + die("called without a parent"); if (!free) - die("uring_task_init called without destructor\n"); + die("called without destructor"); task->refcount = 1; task->fd = -1; @@ -254,7 +254,7 @@ uring_tbuf_write_cb(struct cfg *cfg, struct uring_task *task, int res) int r; if (!task || !task->tbuf || !task->final_callback) - perrordie("%s: missing parameters\n"); + die("missing parameters"); if (res < 0) { r = res; @@ -640,7 +640,7 @@ uring_event_loop(struct cfg *cfg) break; default: - die("%s: unknown CQE type\n"); + die("unknown CQE type"); } if (do_callback && task->callback) |