From 65d25cd7796a473ce669a1f61da7961b8baf479a Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Thu, 17 Apr 2025 09:52:19 -0400 Subject: Log changes, reject mmap() with size 0 - Add file_flush(). Signed-off-by: Andrew Opalach --- src/fs_event/fs_event_inotify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fs_event') diff --git a/src/fs_event/fs_event_inotify.c b/src/fs_event/fs_event_inotify.c index a70550a..e0c48fa 100644 --- a/src/fs_event/fs_event_inotify.c +++ b/src/fs_event/fs_event_inotify.c @@ -37,7 +37,7 @@ bool nn_fs_event_start(struct nn_fs_event *fs, struct nn_event_loop *loop) fs->loop = loop; fs->wd = inotify_add_watch(fs->fd, fs->path, fs->mask); if (fs->wd == -1) { - error("inotify_add_watch(%s) failed (%s).", fs->path, nn_strerror(errno)); + log_error("inotify_add_watch(%s) failed (%s).", fs->path, nn_strerror(errno)); return false; } ev_io_start(fs->loop->ev, &fs->event); -- cgit v1.2.3-101-g0448