mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix more 32-bit Wformat warnings (#2185)
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
be1278d5b2
commit
7693ffe0a5
@@ -70,8 +70,10 @@ public:
|
||||
size_t passCount = std::count(results.begin(), results.end(), 1);
|
||||
if (passCount != results.size()) {
|
||||
std::vector<cl_uint>::iterator iter = std::find(results.begin(), results.end(), 0);
|
||||
log_error("Verification on device failed at index %ld\n", std::distance(results.begin(), iter));
|
||||
log_error("%ld out of %ld failed\n", (results.size()-passCount), results.size());
|
||||
log_error("Verification on device failed at index %td\n",
|
||||
std::distance(results.begin(), iter));
|
||||
log_error("%zu out of %zu failed\n", (results.size() - passCount),
|
||||
results.size());
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -82,7 +84,8 @@ public:
|
||||
cl_int result = CL_SUCCESS;
|
||||
|
||||
for (std::vector<std::string>::const_iterator it = _kernels.begin(); it != _kernels.end(); ++it) {
|
||||
log_info("Executing subcase #%ld out of %ld\n", (it - _kernels.begin() + 1), _kernels.size());
|
||||
log_info("Executing subcase #%zu out of %zu\n",
|
||||
(it - _kernels.begin() + 1), _kernels.size());
|
||||
|
||||
result |= ExecuteSubcase(deviceID, context, queue, num_elements, *it);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user