[CRIU] [PATCH] test: inotify02 -- err typo
Cyrill Gorcunov
gorcunov at openvz.org
Fri Dec 11 06:02:19 PST 2015
err() helper has been changed to pr_perror().
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
test/zdtm/live/static/inotify02.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/test/zdtm/live/static/inotify02.c b/test/zdtm/live/static/inotify02.c
index 9e2c5f76c1bf..58f473504b5b 100644
--- a/test/zdtm/live/static/inotify02.c
+++ b/test/zdtm/live/static/inotify02.c
@@ -37,7 +37,7 @@ static int num_of_handles(int fd)
snprintf(path, sizeof(path), "/proc/self/fdinfo/%d", fd);
f = fopen(path, "r");
if (!f) {
- err("Can't open %s", path);
+ pr_perror("Can't open %s", path);
return -1;
}
@@ -62,13 +62,13 @@ int main (int argc, char *argv[])
test_init(argc, argv);
if (mkdir(dirname, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH)) {
- err("Can't create directory %s", dirname);
+ pr_perror("Can't create directory %s", dirname);
exit(1);
}
fd = inotify_init1(IN_NONBLOCK);
if (fd < 0) {
- err("inotify_init failed");
+ pr_perror("inotify_init failed");
exit(1);
}
@@ -76,12 +76,12 @@ int main (int argc, char *argv[])
snprintf(temp[i], sizeof(temp[0]), "d.%03d", i);
snprintf(path, sizeof(path), "%s/%s", dirname, temp[i]);
if (mkdir(path, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH)) {
- err("Can't create %s", path);
+ pr_perror("Can't create %s", path);
exit(1);
}
if (inotify_add_watch(fd, path, mask) < 0) {
- err("inotify_add_watch failed on %s", path);
+ pr_perror("inotify_add_watch failed on %s", path);
exit(1);
}
}
--
2.5.0
More information about the CRIU
mailing list