Skip to content

Commit 9161445

Browse files
haoxian2pcolberg
authored andcommitted
Fixed coverity issue in acl_kernel.cpp: Type: Invalid type in argument to printf format specifier (PRINTF_ARGS)
`local_work_size[idim]` is of type `size_t` therefore using `%zu` instead of `%d`.
1 parent 7de03cb commit 9161445

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/acl_kernel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1843,7 +1843,7 @@ static cl_int l_enqueue_kernel_with_type(
18431843
for (idim = 0; idim < work_dim; idim++) {
18441844
unsigned int kernel_max_global_work_dim;
18451845
size_t kernel_compile_work_group_size_idim;
1846-
acl_print_debug_msg(" local work size[%d] = %d\n", idim,
1846+
acl_print_debug_msg(" local work size[%d] = %zu\n", idim,
18471847
local_work_size[idim]);
18481848
// If the work group size was specified in the kernel source, then
18491849
// it must match the passed-in size. If the kernel is workgroup invariant,

0 commit comments

Comments
 (0)