Skip to content

Commit c569883

Browse files
Fix PRINTF_ARGS Coverity issue
Fixes: test/acl_context_test.cpp:769:3: Type: Invalid type in argument to printf format specifier (PRINTF_ARGS) test/acl_context_test.cpp:769:3: invalid_type: Argument "acl_ref_count(context0)" to format specifier "%lu" was expected to have type "unsigned long" but has type "unsigned int". src/acl_hal.cpp:123:3: path: Condition "debug_mode > 0", taking true branch. src/acl_hal.cpp:126:5: printf_function: Calling "vprintf" which uses a "printf"-style format string. [Note: The source code implementation of the function has been overridden by a builtin model.]
1 parent bb77139 commit c569883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/acl_context_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ MT_TEST(Context, create_context_multi) {
766766
ACL_LOCKED(CHECK(acl_context_is_valid(context0)));
767767
ACL_LOCKED(CHECK(acl_is_valid_ptr(context0)));
768768

769-
ACL_LOCKED(acl_print_debug_msg(" newly created context0 <%lu>\n",
769+
ACL_LOCKED(acl_print_debug_msg(" newly created context0 <%u>\n",
770770
acl_ref_count(context0)));
771771

772772
status = CL_INVALID_DEVICE;

0 commit comments

Comments
 (0)