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
@@ -20,6 +20,8 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <cinttypes>
|
||||
|
||||
#include "procs.h"
|
||||
|
||||
#define ITERATIONS 4
|
||||
@@ -386,7 +388,8 @@ int run_test(cl_context context, cl_command_queue queue, cl_kernel kernel,
|
||||
global_size, NULL, 0, NULL, NULL);
|
||||
if (DEBUG)
|
||||
log_info("\t\t\tExecuting kernel with global %s, NULL local, "
|
||||
"%d dim, start address %llu, end address %llu.\n",
|
||||
"%d dim, start address %" PRIu64
|
||||
", end address %" PRIu64 ".\n",
|
||||
print_dimensions(dim_str, global_size[0],
|
||||
global_size[1], global_size[2],
|
||||
dimensions),
|
||||
@@ -401,7 +404,8 @@ int run_test(cl_context context, cl_command_queue queue, cl_kernel kernel,
|
||||
if (DEBUG)
|
||||
log_info(
|
||||
"\t\t\tExecuting kernel with global %s, local %s, %d "
|
||||
"dim, start address %llu, end address %llu.\n",
|
||||
"dim, start address %" PRIu64 ", end address %" PRIu64
|
||||
".\n",
|
||||
print_dimensions(dim_str, global_size[0], global_size[1],
|
||||
global_size[2], dimensions),
|
||||
print_dimensions2(dim_str2, local_size[0], local_size[1],
|
||||
|
||||
Reference in New Issue
Block a user