[PATCH 05/26] tests: use sprintrc in tests/fanotify_mark.c

Eugene Syromyatnikov evgsyr at gmail.com
Mon Oct 24 03:00:29 UTC 2016


* 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 9cac5ef..a994c15 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;
-- 
1.7.10.4





More information about the Strace-devel mailing list