diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-18 08:22:12 -0400 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-18 08:22:12 -0400 |
commit | d936dbc41965b18474bc6ca7f17bd881ed4c4e46 (patch) | |
tree | 22336e2ce9049d35138ad1bc182c1612d5a3b080 /src | |
parent | 729c429769e7409a695fa69bfa05c20ef3f41b79 (diff) |
print error string if an inotify operation fails
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 | ||||
-rw-r--r-- | src/winwidget.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -62,7 +62,7 @@ int main(int argc, char **argv) opt.inotify_fd = inotify_init(); if (opt.inotify_fd < 0) { opt.auto_reload = 0; - eprintf("inotify_init failed"); + eprintf("inotify_init failed:"); } } #endif diff --git a/src/winwidget.c b/src/winwidget.c index fa6ac72..1111bc7 100644 --- a/src/winwidget.c +++ b/src/winwidget.c @@ -690,7 +690,7 @@ void winwidget_inotify_remove(winwidget winwid) if (winwid->inotify_wd >= 0) { D(("Removing inotify watch\n")); if (inotify_rm_watch(opt.inotify_fd, winwid->inotify_wd)) - eprintf("inotify_rm_watch failed"); + eprintf("inotify_rm_watch failed:"); winwid->inotify_wd = -1; } } @@ -705,7 +705,7 @@ void winwidget_inotify_add(winwidget winwid, feh_file * file) feh_file_dirname(dir, file, PATH_MAX); winwid->inotify_wd = inotify_add_watch(opt.inotify_fd, dir, IN_CLOSE_WRITE | IN_MOVED_TO); if (winwid->inotify_wd < 0) - eprintf("inotify_add_watch failed"); + eprintf("inotify_add_watch failed:"); } } #endif |