mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix more Wformat warnings related to size_t (#2166)
Printing of a `size_t` requires the `%zu` specifier. 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
d99b302f90
commit
56d383b2e9
@@ -534,7 +534,7 @@ test_status InitCL(cl_device_id device)
|
||||
vlog("\tCL C Version: %s\n", c);
|
||||
clGetDeviceInfo(device, CL_DRIVER_VERSION, sizeof(c), c, NULL);
|
||||
vlog("\tDriver Version: %s\n", c);
|
||||
vlog("\tProcessing with %ld devices\n", gComputeDevices);
|
||||
vlog("\tProcessing with %zu devices\n", gComputeDevices);
|
||||
vlog("\tDevice Frequency: %d MHz\n", gDeviceFrequency);
|
||||
vlog("\tSubnormal values supported for floats? %s\n",
|
||||
no_yes[0 != (CL_FP_DENORM & floatCapabilities)]);
|
||||
|
||||
Reference in New Issue
Block a user