From cab7429706aa6fce9d217ba6c5e3b6e5557914d5 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Tue, 16 Jun 2020 11:22:46 +0200 Subject: Cleanup debugging macros a bit --- cfgdir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cfgdir.c') diff --git a/cfgdir.c b/cfgdir.c index 7e5022b..85646bc 100644 --- a/cfgdir.c +++ b/cfgdir.c @@ -360,7 +360,7 @@ inotify_cb(struct cfg *cfg, struct uring_task *task, int res) for (ptr = iev->buf; ptr < iev->buf + res; ptr += sizeof(struct inotify_event) + event->len) { event = (const struct inotify_event *)ptr; - if (debuglvl > 0) + if (debug_enabled(DBG_CFG)) inotify_event_dump(event); if (event->mask & (IN_IGNORED | IN_MOVE_SELF | IN_DELETE_SELF | IN_UNMOUNT)) -- cgit v1.2.3