diff options
-rw-r--r-- | idle.c | 3 | ||||
-rw-r--r-- | main.c | 2 | ||||
-rw-r--r-- | uring.c | 8 |
3 files changed, 6 insertions, 7 deletions
@@ -297,7 +297,8 @@ idle_check_connected_cb(struct cfg *cfg, struct connection *conn, bool connected char hostname[INET6_ADDRSTRLEN]; if (!connected) { - error("idle check connection to remote server (%s) failed\n", + debug(DBG_IDLE, + "idle check connection to remote server (%s) failed\n", idle->server->name); idle->server->idle_count = 0; return; @@ -337,7 +337,7 @@ usage(int argc, char **argv, bool invalid) info("Usage: %s [OPTIONS]\n" "\n" "Valid options:\n" - " -h, --homedir=DIR\tlook for configuration files in DIR\n" + " -H, --homedir=DIR\tlook for configuration files in DIR\n" " -u, --user=USER\trun as USER\n" " -D, --daemonize\trun in daemon mode (disables stderr output)\n" " -l, --logfile=FILE\tlog to FILE instead of stderr\n" @@ -617,7 +617,8 @@ uring_init(struct cfg *cfg) if (io_uring_queue_init_params(4096, &uev->uring, &uev->uring_params) < 0) perrordie("io_uring_queue_init_params"); - verbose("uring initialized, features: 0x%08x\n", uev->uring_params.features); + debug(DBG_UR, "uring initialized, features: 0x%08x\n", + uev->uring_params.features); uring_task_init(&uev->task, "uev", &cfg->task, uring_free); cfg->uev = uev; @@ -628,10 +629,7 @@ static inline void uring_print_cqe(struct cfg *cfg, const char *type, struct uring_task *task, struct io_uring_cqe *cqe) { - if (!debug_enabled(DBG_UR)) - return; - - error("got CQE " + debug(DBG_UR, "got CQE " "(type: %s, res: %i (%s), task: %s (%p), fd: %i, cb: %p)\n", type, cqe->res, |