summaryrefslogtreecommitdiff
path: root/tests/cl
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2014-01-29 20:14:55 -0800
committerVinson Lee <vlee@freedesktop.org>2014-01-30 16:28:30 -0800
commit53a4d1210143bbbf1dbe5d6f55b208a3670e6571 (patch)
tree2ad511075497a1caad26744f2d872a91c32c48b5 /tests/cl
parent4a98bcb12f6f87d07c9ca6d6786a00ac00d0cbaf (diff)
cl-program-tester: Fix GCC format-security warning.
This patch fixes this GCC format-security warning. program-tester.c: In function ‘piglit_cl_test’: program-tester.c:1978:3: warning: format not a string literal and no format arguments [-Wformat-security] piglit_report_subtest_result(test_result, tests[i].name); ^ Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Diffstat (limited to 'tests/cl')
-rw-r--r--tests/cl/program/program-tester.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cl/program/program-tester.c b/tests/cl/program/program-tester.c
index d93034eb8..6ff3251a1 100644
--- a/tests/cl/program/program-tester.c
+++ b/tests/cl/program/program-tester.c
@@ -1975,7 +1975,7 @@ piglit_cl_test(const int argc,
test_result = test_kernel(config, env, tests[i]);
piglit_merge_result(&result, test_result);
- piglit_report_subtest_result(test_result, tests[i].name);
+ piglit_report_subtest_result(test_result, "%s", tests[i].name);
}
/* Print result */