-
Notifications
You must be signed in to change notification settings - Fork 253
Description
Describe the bug
A recent change has broken the build for RTEMS (again). These are printf format warnings.
/home/joe/code/cfecfs/github/osal/src/tests/select-test/select-test.c: In function 'TestSelectSingleRead':
/home/joe/code/cfecfs/github/osal/src/tests/select-test/select-test.c:321:5: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32' [-Werror=format=]
UtAssert_True(StateFlags == 0, "OS_SelectSingle() (%d) == None", StateFlags);
^
/home/joe/code/cfecfs/github/osal/src/tests/select-test/select-test.c:331:5: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32' [-Werror=format=]
UtAssert_True(StateFlags == OS_STREAM_STATE_READABLE, "OS_SelectSingle() (%d) == OS_STREAM_STATE_READABLE",
^
/home/joe/code/cfecfs/github/osal/src/tests/select-test/select-test.c: In function 'TestSelectSingleWrite':
/home/joe/code/cfecfs/github/osal/src/tests/select-test/select-test.c:436:9: error: format '%d' expects argument of type 'int', but argument 6 has type 'uint32' [-Werror=format=]
UtAssert_True(StateFlags == 0, "OS_SelectSingle() (%d) == None", StateFlags);
^
Appears to be added by PR #683 ....
To Reproduce
Build for RTEMS 4.11 per instructions and default config. Build fails.
Expected behavior
Build should succeed.
System observed on:
Ubuntu 20.04 as build host for RTEMS 4.11.3 / pc686 BSP.
Reporter Info
Joseph Hickey, Vantage Systems, Inc.
Reactions are currently unavailable