Skip to content

printf format issue on RTEMS #1522

@jphickey

Description

@jphickey

Describe the bug
When compiling the test app under RTEMS, a build failure occurs:

/home/joe/code/cfecfs/github/cfe/modules/cfe_testcase/src/es_task_test.c: In function 'TestCreateChild':
/home/joe/code/cfecfs/github/cfe/modules/cfe_testcase/src/es_task_test.c:89:5: error: format '%d' expects argument of type 'int', but argument 7 has type 'uint32' [-Werror=format=]
     UtAssert_True(countCopy == count || countCopy == count + 1, "countCopy (%d) == count (%d)", countCopy, count);
     ^

To Reproduce
Build system for RTEMS 4.11 with unit tests enabled, and es_task_test.c will fail to build.

Expected behavior
Build should succeed.

System observed on:
RTEMS 4.11

Reporter Info
Joseph Hickey, Vantage Systems, Inc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions