mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-24 07:59:01 +00:00
Fix more Wformat warnings related to size_t (#2166)
Printing of a `size_t` requires the `%zu` specifier. This fixes occurrences where the previous wrong specifier appears to work in a typical 64-bit build, but causes a Wformat warning in 32-bit builds. --------- Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
d99b302f90
commit
56d383b2e9
@@ -86,7 +86,7 @@ int determine_validation_error_offset(
|
||||
{
|
||||
if (printAsFloat)
|
||||
{
|
||||
log_error("Sample %ld: coord {%f(%a),%f(%a),%f(%a)} did "
|
||||
log_error("Sample %zu: coord {%f(%a),%f(%a),%f(%a)} did "
|
||||
"not validate! Expected (%g,%g,%g,%g), got "
|
||||
"(%g,%g,%g,%g), error of %g\n",
|
||||
j, x, x, y, y, z, z, (float)expected[0],
|
||||
@@ -98,7 +98,7 @@ int determine_validation_error_offset(
|
||||
else
|
||||
{
|
||||
log_error(
|
||||
"Sample %ld: coord {%f(%a),%f(%a),%f(%a)} did not "
|
||||
"Sample %zu: coord {%f(%a),%f(%a),%f(%a)} did not "
|
||||
"validate! Expected (%x,%x,%x,%x), got (%x,%x,%x,%x)\n",
|
||||
j, x, x, y, y, z, z, (int)expected[0], (int)expected[1],
|
||||
(int)expected[2], (int)expected[3], (int)resultPtr[0],
|
||||
@@ -134,7 +134,7 @@ int determine_validation_error_offset(
|
||||
{
|
||||
if (printAsFloat)
|
||||
{
|
||||
log_error("Sample %ld: coord {%f(%a),%f(%a),%f(%a)} did "
|
||||
log_error("Sample %zu: coord {%f(%a),%f(%a),%f(%a)} did "
|
||||
"not validate! Expected (%g,%g,%g,%g), got "
|
||||
"(%g,%g,%g,%g), error of %g\n",
|
||||
j, x, x, y, y, z, z, (float)expected[0],
|
||||
@@ -146,7 +146,7 @@ int determine_validation_error_offset(
|
||||
else
|
||||
{
|
||||
log_error(
|
||||
"Sample %ld: coord {%f(%a),%f(%a),%f(%a)} did not "
|
||||
"Sample %zu: coord {%f(%a),%f(%a),%f(%a)} did not "
|
||||
"validate! Expected (%x,%x,%x,%x), got (%x,%x,%x,%x)\n",
|
||||
j, x, x, y, y, z, z, (int)expected[0], (int)expected[1],
|
||||
(int)expected[2], (int)expected[3], (int)resultPtr[0],
|
||||
@@ -164,7 +164,7 @@ int determine_validation_error_offset(
|
||||
{
|
||||
if (printAsFloat)
|
||||
{
|
||||
log_error("Sample %ld: coord {%f(%a),%f(%a),%f(%a)} did not "
|
||||
log_error("Sample %zu: coord {%f(%a),%f(%a),%f(%a)} did not "
|
||||
"validate!\n\tExpected (%g,%g,%g,%g),\n\t got "
|
||||
"(%g,%g,%g,%g), error of %g\n",
|
||||
j, x, x, y, y, z, z, (float)expected[0],
|
||||
@@ -175,7 +175,7 @@ int determine_validation_error_offset(
|
||||
}
|
||||
else
|
||||
{
|
||||
log_error("Sample %ld: coord {%f(%a),%f(%a),%f(%a)} did not "
|
||||
log_error("Sample %zu: coord {%f(%a),%f(%a),%f(%a)} did not "
|
||||
"validate!\n\tExpected (%x,%x,%x,%x),\n\t got "
|
||||
"(%x,%x,%x,%x)\n",
|
||||
j, x, x, y, y, z, z, (int)expected[0], (int)expected[1],
|
||||
|
||||
Reference in New Issue
Block a user