From f3a326c85b1774a691bd844e015ef832b0883a1a Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Mon, 17 Oct 2016 20:43:17 +0300 Subject: [PATCH] tests: use sprintrc in tests/fanotify_mark.c * tests/fanotify.c (main): Use sprintrc. --- tests/fanotify_mark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fanotify_mark.c b/tests/fanotify_mark.c index 9cac5ef7..a994c154 100644 --- a/tests/fanotify_mark.c +++ b/tests/fanotify_mark.c @@ -11,7 +11,7 @@ main(void) int rc = fanotify_mark(-1, FAN_MARK_ADD, FAN_MODIFY | FAN_ONDIR, -100, "."); printf("fanotify_mark(-1, FAN_MARK_ADD, FAN_MODIFY|FAN_ONDIR" - ", AT_FDCWD, \".\") = %d %s (%m)\n", rc, errno2name()); + ", AT_FDCWD, \".\") = %s\n", sprintrc(rc)); puts("+++ exited with 0 +++"); return 0; -- 2.40.0