* 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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to