From 75a0d069699831240ff216e7e6243e3ce3b6d433 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 10 Dec 2021 13:09:15 +0000 Subject: [PATCH] bus: Show the errno if inotify cannot be initialized This will hopefully help to indicate why. Signed-off-by: Simon McVittie --- bus/dir-watch-inotify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bus/dir-watch-inotify.c b/bus/dir-watch-inotify.c index 6cc02968f..b52a24c0f 100644 --- a/bus/dir-watch-inotify.c +++ b/bus/dir-watch-inotify.c @@ -236,7 +236,7 @@ _init_inotify (BusContext *context) #endif if (inotify_fd < 0) { - _dbus_warn ("Cannot initialize inotify"); + _dbus_warn ("Cannot initialize inotify: %s", _dbus_strerror (errno)); goto out; } -- 2.47.3