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 --- cfgdir.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cfgdir.c') diff --git a/cfgdir.c b/cfgdir.c index 040e016..28a300a 100644 --- a/cfgdir.c +++ b/cfgdir.c @@ -352,15 +352,13 @@ inotify_cb(struct cfg *cfg, struct uring_task *task, int res) char *ptr; struct server *scfg; - fprintf(stderr, "%s: ret is %i (ref %u)\n", __func__, res, task->refcount); - if (task->dead) { - fprintf(stderr, "%s: task is dead\n", __func__); + debug(DBG_CFG, "task is dead\n"); return; } if (res <= 0) - perrordie("inotify_read"); + perrordie("inotify_read (%i)", res); for (ptr = iev->buf; ptr < iev->buf + res; ptr += sizeof(struct inotify_event) + event->len) { event = (const struct inotify_event *)ptr; -- cgit v1.2.3