mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix various Wformat warnings (#2135)
test_copy_1D.cpp: num_mip_levels is a cl_uint, so don't cast and just print using `%u`. test_pipe_info.cpp: arg_type_qualifier is a 64-bit wide bitfield, so print in hexadecimal format using the correct length modifier. test_device_partition.cpp: it is not clear what the bit width of `cl_device_partition_property` should be, so cast the operands to align with the format specifiers. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
d3b9520adc
commit
e360d2de5b
@@ -369,7 +369,7 @@ int checkCorrectnessStep(bufferStruct *pBufferStruct, clState *pClState,
|
||||
{
|
||||
if (targetArr[i] != targetSize)
|
||||
{
|
||||
vlog_error("Error %ld (of %ld). Expected %d, got %d\n", i,
|
||||
vlog_error("Error %zu (of %zu). Expected %d, got %d\n", i,
|
||||
pClState->m_numThreads, targetSize, targetArr[i]);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ int test_step_internal(cl_device_id deviceID, cl_context context,
|
||||
err = runKernel(pClState, 1024);
|
||||
if (err != 0)
|
||||
{
|
||||
vlog_error("%s: runKernel fail (%ld threads) %s%s\n", testName,
|
||||
vlog_error("%s: runKernel fail (%zu threads) %s%s\n", testName,
|
||||
pClState->m_numThreads, g_arrTypeNames[typeIdx],
|
||||
g_arrVecSizeNames[vecSizeIdx]);
|
||||
destroyBufferStruct(pBuffers, pClState);
|
||||
|
||||
@@ -183,7 +183,7 @@ int test_vec_internal(cl_device_id deviceID, cl_context context,
|
||||
/ (g_arrVecSizes[vecSizeIdx] * g_arrTypeSizes[typeIdx]));
|
||||
if (err != 0)
|
||||
{
|
||||
vlog_error("%s: runKernel fail (%ld threads) %s%s\n", testName,
|
||||
vlog_error("%s: runKernel fail (%zu threads) %s%s\n", testName,
|
||||
pClState->m_numThreads, g_arrTypeNames[typeIdx],
|
||||
g_arrVecSizeNames[vecSizeIdx]);
|
||||
destroyBufferStruct(pBuffers, pClState);
|
||||
|
||||
Reference in New Issue
Block a user