Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cl_khr_mutable_dispatch: fix -Wformat warnings #2071

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ struct MutableDispatchLocalArguments : public MutableDispatchArgumentsTest
for (size_t i = 0; i < number_of_ints; i++)
if (constant_data[i] != result_data[i])
{
log_error("Data failed to verify: constant_data[%d]=%d != "
"result_data[%d]=%d\n",
log_error("Data failed to verify: constant_data[%zu]=%d != "
"result_data[%zu]=%d\n",
i, constant_data[i], i, result_data[i]);
return TEST_FAIL;
}
Expand Down Expand Up @@ -458,8 +458,8 @@ struct MutableDispatchPODArguments : public MutableDispatchArgumentsTest
for (size_t i = 0; i < number_of_ints; i++)
if (constant_data[i] != result_data[i])
{
log_error("Data failed to verify: constant_data[%d]=%d != "
"result_data[%d]=%d\n",
log_error("Data failed to verify: constant_data[%zu]=%d != "
"result_data[%zu]=%d\n",
i, constant_data[i], i, result_data[i]);
return TEST_FAIL;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@ struct MutableDispatchGlobalOffset : InfoMutableCommandBufferTest
if (i < update_global_offset && 0 != resultData[i])
{
log_error("Data failed to verify: update_global_offset != "
"resultData[%d]=%d\n",
"resultData[%zu]=%d\n",
i, resultData[i]);
return TEST_FAIL;
}
else if (i >= update_global_offset
&& update_global_offset != resultData[i])
{
log_error("Data failed to verify: update_global_offset != "
"resultData[%d]=%d\n",
"resultData[%zu]=%d\n",
i, resultData[i]);
return TEST_FAIL;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ struct MutableDispatchGlobalSize : public InfoMutableCommandBufferTest
if (i >= update_global_size && global_work_size != resultData[i])
{
log_error("Data failed to verify: update_global_size != "
"resultData[%d]=%d\n",
"resultData[%zu]=%d\n",
i, resultData[i]);
return TEST_FAIL;
}
else if (i < update_global_size
&& update_global_size != resultData[i])
{
log_error("Data failed to verify: update_global_size != "
"resultData[%d]=%d\n",
"resultData[%zu]=%d\n",
i, resultData[i]);
return TEST_FAIL;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ struct MutableDispatchImage1DArguments : public BasicMutableCommandBufferTest
{
if (imageValues_input[i] != outputData[i])
{
log_error("Data failed to verify: imageValues[%d]=%d != "
"outputData[%d]=%d\n",
log_error("Data failed to verify: imageValues[%zu]=%d != "
"outputData[%zu]=%d\n",
i, imageValues_input[i], i, outputData[i]);

return TEST_FAIL;
Expand Down Expand Up @@ -397,8 +397,8 @@ struct MutableDispatchImage2DArguments : public BasicMutableCommandBufferTest
{
if (imageValues_input[i] != outputData[i])
{
log_error("Data failed to verify: imageValues[%d]=%d != "
"outputData[%d]=%d\n",
log_error("Data failed to verify: imageValues[%zu]=%d != "
"outputData[%zu]=%d\n",
i, imageValues_input[i], i, outputData[i]);
return TEST_FAIL;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,15 @@ struct MutableDispatchLocalSize : public InfoMutableCommandBufferTest
if (i < update_global_size && update_local_size != resultData[i])
{
log_error("Data failed to verify: update_local_size != "
"resultData[%d]=%d\n",
"resultData[%zu]=%d\n",
i, resultData[i]);
return TEST_FAIL;
}
else if (i >= update_global_size
&& local_work_size != resultData[i])
{
log_error("Data failed to verify: update_local_size != "
"resultData[%d]=%d\n",
"resultData[%zu]=%d\n",
i, resultData[i]);
return TEST_FAIL;
}
Expand Down
Loading