summaryrefslogtreecommitdiff
path: root/cfgdir.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-16 22:31:39 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-16 22:31:39 +0200
commitc48f30ca53695faa09683fc8f506463c07f9c2c3 (patch)
tree80577fb4299ef6e91339be3412b9dbfd432e445a /cfgdir.c
parentbf3df84cdfbdb0da776d8fb2af9fa2cf53eec985 (diff)
Fixup remaining missed cases of debugging
Diffstat (limited to 'cfgdir.c')
-rw-r--r--cfgdir.c6
1 files changed, 2 insertions, 4 deletions
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;