mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-24 15:59:03 +00:00
cl_khr_mutable_dispatch: fix -Wformat warnings (#2071)
Printing of a `size_t` requires the `%zu` specifier. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
b57f90eeab
commit
c32a76786c
@@ -324,8 +324,8 @@ struct MutableDispatchLocalArguments : public MutableDispatchArgumentsTest
|
|||||||
for (size_t i = 0; i < number_of_ints; i++)
|
for (size_t i = 0; i < number_of_ints; i++)
|
||||||
if (constant_data[i] != result_data[i])
|
if (constant_data[i] != result_data[i])
|
||||||
{
|
{
|
||||||
log_error("Data failed to verify: constant_data[%d]=%d != "
|
log_error("Data failed to verify: constant_data[%zu]=%d != "
|
||||||
"result_data[%d]=%d\n",
|
"result_data[%zu]=%d\n",
|
||||||
i, constant_data[i], i, result_data[i]);
|
i, constant_data[i], i, result_data[i]);
|
||||||
return TEST_FAIL;
|
return TEST_FAIL;
|
||||||
}
|
}
|
||||||
@@ -457,8 +457,8 @@ struct MutableDispatchPODArguments : public MutableDispatchArgumentsTest
|
|||||||
for (size_t i = 0; i < number_of_ints; i++)
|
for (size_t i = 0; i < number_of_ints; i++)
|
||||||
if (constant_data[i] != result_data[i])
|
if (constant_data[i] != result_data[i])
|
||||||
{
|
{
|
||||||
log_error("Data failed to verify: constant_data[%d]=%d != "
|
log_error("Data failed to verify: constant_data[%zu]=%d != "
|
||||||
"result_data[%d]=%d\n",
|
"result_data[%zu]=%d\n",
|
||||||
i, constant_data[i], i, result_data[i]);
|
i, constant_data[i], i, result_data[i]);
|
||||||
return TEST_FAIL;
|
return TEST_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ struct MutableDispatchGlobalOffset : InfoMutableCommandBufferTest
|
|||||||
if (i < update_global_offset && 0 != resultData[i])
|
if (i < update_global_offset && 0 != resultData[i])
|
||||||
{
|
{
|
||||||
log_error("Data failed to verify: update_global_offset != "
|
log_error("Data failed to verify: update_global_offset != "
|
||||||
"resultData[%d]=%d\n",
|
"resultData[%zu]=%d\n",
|
||||||
i, resultData[i]);
|
i, resultData[i]);
|
||||||
return TEST_FAIL;
|
return TEST_FAIL;
|
||||||
}
|
}
|
||||||
@@ -145,7 +145,7 @@ struct MutableDispatchGlobalOffset : InfoMutableCommandBufferTest
|
|||||||
&& update_global_offset != resultData[i])
|
&& update_global_offset != resultData[i])
|
||||||
{
|
{
|
||||||
log_error("Data failed to verify: update_global_offset != "
|
log_error("Data failed to verify: update_global_offset != "
|
||||||
"resultData[%d]=%d\n",
|
"resultData[%zu]=%d\n",
|
||||||
i, resultData[i]);
|
i, resultData[i]);
|
||||||
return TEST_FAIL;
|
return TEST_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ struct MutableDispatchGlobalSize : public InfoMutableCommandBufferTest
|
|||||||
if (i >= update_global_size && global_work_size != resultData[i])
|
if (i >= update_global_size && global_work_size != resultData[i])
|
||||||
{
|
{
|
||||||
log_error("Data failed to verify: update_global_size != "
|
log_error("Data failed to verify: update_global_size != "
|
||||||
"resultData[%d]=%d\n",
|
"resultData[%zu]=%d\n",
|
||||||
i, resultData[i]);
|
i, resultData[i]);
|
||||||
return TEST_FAIL;
|
return TEST_FAIL;
|
||||||
}
|
}
|
||||||
@@ -144,7 +144,7 @@ struct MutableDispatchGlobalSize : public InfoMutableCommandBufferTest
|
|||||||
&& update_global_size != resultData[i])
|
&& update_global_size != resultData[i])
|
||||||
{
|
{
|
||||||
log_error("Data failed to verify: update_global_size != "
|
log_error("Data failed to verify: update_global_size != "
|
||||||
"resultData[%d]=%d\n",
|
"resultData[%zu]=%d\n",
|
||||||
i, resultData[i]);
|
i, resultData[i]);
|
||||||
return TEST_FAIL;
|
return TEST_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -199,8 +199,8 @@ struct MutableDispatchImage1DArguments : public BasicMutableCommandBufferTest
|
|||||||
{
|
{
|
||||||
if (imageValues_input[i] != outputData[i])
|
if (imageValues_input[i] != outputData[i])
|
||||||
{
|
{
|
||||||
log_error("Data failed to verify: imageValues[%d]=%d != "
|
log_error("Data failed to verify: imageValues[%zu]=%d != "
|
||||||
"outputData[%d]=%d\n",
|
"outputData[%zu]=%d\n",
|
||||||
i, imageValues_input[i], i, outputData[i]);
|
i, imageValues_input[i], i, outputData[i]);
|
||||||
|
|
||||||
return TEST_FAIL;
|
return TEST_FAIL;
|
||||||
@@ -399,8 +399,8 @@ struct MutableDispatchImage2DArguments : public BasicMutableCommandBufferTest
|
|||||||
{
|
{
|
||||||
if (imageValues_input[i] != outputData[i])
|
if (imageValues_input[i] != outputData[i])
|
||||||
{
|
{
|
||||||
log_error("Data failed to verify: imageValues[%d]=%d != "
|
log_error("Data failed to verify: imageValues[%zu]=%d != "
|
||||||
"outputData[%d]=%d\n",
|
"outputData[%zu]=%d\n",
|
||||||
i, imageValues_input[i], i, outputData[i]);
|
i, imageValues_input[i], i, outputData[i]);
|
||||||
return TEST_FAIL;
|
return TEST_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ struct MutableDispatchLocalSize : public InfoMutableCommandBufferTest
|
|||||||
if (i < update_global_size && update_local_size != resultData[i])
|
if (i < update_global_size && update_local_size != resultData[i])
|
||||||
{
|
{
|
||||||
log_error("Data failed to verify: update_local_size != "
|
log_error("Data failed to verify: update_local_size != "
|
||||||
"resultData[%d]=%d\n",
|
"resultData[%zu]=%d\n",
|
||||||
i, resultData[i]);
|
i, resultData[i]);
|
||||||
return TEST_FAIL;
|
return TEST_FAIL;
|
||||||
}
|
}
|
||||||
@@ -147,7 +147,7 @@ struct MutableDispatchLocalSize : public InfoMutableCommandBufferTest
|
|||||||
&& local_work_size != resultData[i])
|
&& local_work_size != resultData[i])
|
||||||
{
|
{
|
||||||
log_error("Data failed to verify: update_local_size != "
|
log_error("Data failed to verify: update_local_size != "
|
||||||
"resultData[%d]=%d\n",
|
"resultData[%zu]=%d\n",
|
||||||
i, resultData[i]);
|
i, resultData[i]);
|
||||||
return TEST_FAIL;
|
return TEST_FAIL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user