diff options
author | Alakesh Haloi <alakesh.haloi@gmail.com> | 2019-05-27 17:18:59 +0200 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2019-05-30 16:21:36 +0200 |
commit | 98a13a8d253999cf25eb16d901c35fbd2a8455c4 (patch) | |
tree | 988855a74c26bee7dc642840c468b512f0ed91c4 /tools | |
parent | kselftest/cgroup: fix incorrect test_core skip (diff) | |
download | linux-98a13a8d253999cf25eb16d901c35fbd2a8455c4.tar.xz linux-98a13a8d253999cf25eb16d901c35fbd2a8455c4.zip |
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: Alakesh Haloi <alakesh.haloi@gmail.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/vm/userfaultfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/vm/userfaultfd.c b/tools/testing/selftests/vm/userfaultfd.c index 5d1db824f73a..b3e6497b080c 100644 --- a/tools/testing/selftests/vm/userfaultfd.c +++ b/tools/testing/selftests/vm/userfaultfd.c @@ -123,7 +123,7 @@ static void usage(void) fprintf(stderr, "Supported <test type>: anon, hugetlb, " "hugetlb_shared, shmem\n\n"); fprintf(stderr, "Examples:\n\n"); - fprintf(stderr, examples); + fprintf(stderr, "%s", examples); exit(1); } |