mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
math_brute_force: Fix -Wformat warnings (#1518)
* math_brute_force: Fix -Wformat warnings The main sources of warnings were: * Printing of 64-bit types, which is now done using the `PRI*64` macros from <cinttypes> to ensure portability across 32 and 64-bit builds. * Printing of `size_t` types that lacked a `z` length modifier. * Printing of values with a `z` length modifier that weren't a `size_t` type. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com> * [NFC] math_brute_force: clang-format after -Wformat changes Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com> Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
c69f6eec47
commit
73f51ccff7
@@ -755,7 +755,7 @@ cl_int Test(cl_uint job_id, cl_uint thread_id, void *data)
|
||||
{
|
||||
vlog_error(
|
||||
"\nERROR: %s%s: %f ulp error at {%a (0x%x), %a "
|
||||
"(0x%x)}: *%a vs. %a (0x%8.8x) at index: %d\n",
|
||||
"(0x%x)}: *%a vs. %a (0x%8.8x) at index: %zu\n",
|
||||
name, sizeNames[k], err, s[j], ((cl_uint *)s)[j],
|
||||
s2[j], ((cl_uint *)s2)[j], r[j], test,
|
||||
((cl_uint *)&test)[0], j);
|
||||
@@ -787,7 +787,7 @@ cl_int Test(cl_uint job_id, cl_uint thread_id, void *data)
|
||||
{
|
||||
if (gVerboseBruteForce)
|
||||
{
|
||||
vlog("base:%14u step:%10u scale:%10zu buf_elements:%10u ulps:%5.3f "
|
||||
vlog("base:%14u step:%10u scale:%10u buf_elements:%10zu ulps:%5.3f "
|
||||
"ThreadCount:%2u\n",
|
||||
base, job->step, job->scale, buffer_elements, job->ulps,
|
||||
job->threadCount);
|
||||
|
||||
Reference in New Issue
Block a user