Skip to content
Commit b5890924 authored by Kumar Gala's avatar Kumar Gala Committed by Anas Nashif
Browse files

tests: rtio: fix compile warning with arm-clang



When building the rtio_api tests with arm-clang we get the following
compiler warning:

rtio_api/src/test_rtio_api.c:436:58: warning: format specifies type
'unsigned long' but the argument has type 'uintptr_t'
(aka 'unsigned int') [-Wformat]

        TC_PRINT("userdata is %p, value %lu\n", cqe->userdata, idx);
                                        ~~~                    ^~~
                                        %u

Use PRIuPTR to fix the issue.

Signed-off-by: default avatarKumar Gala <kumar.gala@intel.com>
parent 1621376b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment