From 2826d14091e43ed3397d862dee79d09d0115c84e Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Wed, 13 Feb 2013 15:09:36 +0100 Subject: log_error() if inotify_add_watch() fails [zj: Reworded message s/to watch/to add watch on/ to make it clear that it was the watch init action that failed, and not the "process of watching". I think this way it'll be clearer to people who don't know what inotify does.] --- src/readahead/readahead-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/readahead') diff --git a/src/readahead/readahead-common.c b/src/readahead/readahead-common.c index 41aaff0a3d..1599ac15a4 100644 --- a/src/readahead/readahead-common.c +++ b/src/readahead/readahead-common.c @@ -227,7 +227,7 @@ int open_inotify(void) { mkdir("/run/systemd/readahead", 0755); if (inotify_add_watch(fd, "/run/systemd/readahead", IN_CREATE) < 0) { - log_error("Failed to watch /run/systemd/readahead: %m"); + log_error("Failed to add watch on /run/systemd/readahead: %m"); close_nointr_nofail(fd); return -errno; } -- cgit v1.2.3-54-g00ecf