Commit eec43bb0 authored by Alakesh Haloi's avatar Alakesh Haloi Committed by Greg Kroah-Hartman

userfaultfd: selftest: fix compiler warning

[ Upstream commit 98a13a8d ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8af55656
...@@ -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