Commit 98a13a8d authored by Alakesh Haloi's avatar Alakesh Haloi Committed by Shuah Khan

userfaultfd: selftest: fix compiler warning

Fixes following compiler warning

userfaultfd.c: In function ‘usage’:
userfaultfd.c:126:2: warning: format not a string literal and no format
	arguments [-Wformat-security]
  fprintf(stderr, examples);
Signed-off-by: default avatarAlakesh Haloi <alakesh.haloi@gmail.com>
Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
Reviewed-by: default avatarMike Rapoport <rppt@linux.ibm.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent f97f3f88
...@@ -123,7 +123,7 @@ static void usage(void) ...@@ -123,7 +123,7 @@ static void usage(void)
fprintf(stderr, "Supported <test type>: anon, hugetlb, " fprintf(stderr, "Supported <test type>: anon, hugetlb, "
"hugetlb_shared, shmem\n\n"); "hugetlb_shared, shmem\n\n");
fprintf(stderr, "Examples:\n\n"); fprintf(stderr, "Examples:\n\n");
fprintf(stderr, examples); fprintf(stderr, "%s", examples);
exit(1); exit(1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment