Skip to content

Incorrect printf format code in RTEMS debug message #273

@jphickey

Description

@jphickey

Describe the bug
Incorrect printf format code in RTEMS debug message

To Reproduce
Build on RTEMS with debugging messages enabled and full warnings enabled (-Wall, -Werror)
Compiler generates an error about an incorrect format:

osal/src/os/rtems/osfilesys.c:176:9: error: format '%lX' expects argument of type 'long unsigned int', but argument 4 has type 'char *'

Expected behavior
Code should build warning-free

System observed on:
Ubuntu 18.04.2 LTS (build host for i686-rtems4.11)

Reporter Info
Joseph Hickey, Vantage Systems Inc.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions