Skip to content

Commit

Permalink
Change integer printf statement to size_t type
Browse files Browse the repository at this point in the history
This change fixes this coverity issue:
src/acl_offline_hal.cpp:182:69:
  Type: Invalid type in argument to printf format specifier (PRINTF_ARGS)
  • Loading branch information
IlanTruanovsky committed Jan 9, 2023
1 parent d188f5c commit 43603d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acl_offline_hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static void acl_offline_hal_copy_hostmem_to_hostmem(cl_event event,

acl_offline_hal_event_callback(
event, CL_RUNNING); // in "real life" this in response to a hw message
acl_print_debug_msg(" Copying %d bytes from %p to %p event %p\n", size, src,
acl_print_debug_msg(" Copying %zu bytes from %p to %p event %p\n", size, src,
dest, event);
memmove(dest, src, size);
acl_offline_hal_event_callback(
Expand Down

0 comments on commit 43603d6

Please sign in to comment.