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
@@ -213,7 +213,7 @@ int test_copy_image_set_1D( cl_device_id device, cl_context context, cl_command_
|
||||
{
|
||||
log_info( " at size %d (row pitch %d) out of %d\n", (int)imageInfo.width, (int)imageInfo.rowPitch, (int)maxWidth );
|
||||
if ( gTestMipmaps )
|
||||
log_info( " and %llu mip levels\n", (size_t) imageInfo.num_mip_levels );
|
||||
log_info(" and %u mip levels\n", imageInfo.num_mip_levels);
|
||||
}
|
||||
|
||||
int ret = test_copy_image_size_1D( context, queue, &imageInfo, seed );
|
||||
|
||||
@@ -160,7 +160,9 @@ int test_read_image_1D_array( cl_context context, cl_command_queue queue, cl_ker
|
||||
}
|
||||
if ( !allZeroes )
|
||||
{
|
||||
log_error( " Sampler-less reads differ from reads with sampler at index %lu.\n", ic );
|
||||
log_error(" Sampler-less reads differ from reads with sampler at index "
|
||||
"%zu.\n",
|
||||
ic);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
@@ -149,7 +149,9 @@ int test_read_image_3D( cl_context context, cl_command_queue queue, cl_kernel ke
|
||||
}
|
||||
if ( !allZeroes )
|
||||
{
|
||||
log_error( " Sampler-less reads differ from reads with sampler at index %lu.\n", ic );
|
||||
log_error(" Sampler-less reads differ from reads with sampler at index "
|
||||
"%zu.\n",
|
||||
ic);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user