Skip to content

Commit 43603d6

Browse files
Change integer printf statement to size_t type
This change fixes this coverity issue: src/acl_offline_hal.cpp:182:69: Type: Invalid type in argument to printf format specifier (PRINTF_ARGS)
1 parent d188f5c commit 43603d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/acl_offline_hal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static void acl_offline_hal_copy_hostmem_to_hostmem(cl_event event,
179179

180180
acl_offline_hal_event_callback(
181181
event, CL_RUNNING); // in "real life" this in response to a hw message
182-
acl_print_debug_msg(" Copying %d bytes from %p to %p event %p\n", size, src,
182+
acl_print_debug_msg(" Copying %zu bytes from %p to %p event %p\n", size, src,
183183
dest, event);
184184
memmove(dest, src, size);
185185
acl_offline_hal_event_callback(

0 commit comments

Comments
 (0)