From 7b2240a7a9387068f8da0f9bfeac90ec27034878 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Tue, 16 Jun 2020 15:29:15 +0200 Subject: Convert server and uring to debugging --- main.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index e47848c..ad99684 100644 --- a/main.c +++ b/main.c @@ -97,6 +97,12 @@ const struct { },{ .name = "signals", .val = DBG_SIG + },{ + .name = "uring", + .val = DBG_UR + },{ + .name = "server", + .val = DBG_SRV },{ .name = NULL, .val = 0 @@ -245,7 +251,7 @@ signalfd_read(struct cfg *cfg, struct uring_task *task, int res) sd_notifyf(0, "STOPPING=1\nSTATUS=Received signal, exiting"); exit(EXIT_SUCCESS); } else { - info(stderr, "Got a signal to dump tree\n"); + info("Got a signal to dump tree\n"); sd_notifyf(0, "STOPPING=1\nSTATUS=Received signal, exiting"); dump_tree(cfg); uring_task_put(cfg, &sev->task); @@ -382,7 +388,7 @@ main(int argc, char **argv) server_count, (unsigned long)getpid()); - info(stderr, "%s: started, %u server configurations loaded\n", + info("%s: started, %u server configurations loaded\n", argv[0], server_count); uring_event_loop(cfg); -- cgit v1.2.3