Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect printf format code in RTEMS debug message #273

Closed
jphickey opened this issue Oct 23, 2019 · 0 comments · Fixed by #281
Closed

Incorrect printf format code in RTEMS debug message #273

jphickey opened this issue Oct 23, 2019 · 0 comments · Fixed by #281
Assignees
Labels
Milestone

Comments

@jphickey
Copy link
Contributor

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.

jphickey added a commit that referenced this issue Oct 23, 2019
Cast the address value so it may be printed as an integer.
@skliper skliper added the bug label Oct 30, 2019
@skliper skliper added this to the 5.1.0 milestone Oct 30, 2019
skliper pushed a commit that referenced this issue Oct 31, 2019
Cast the address value so it may be printed as an integer.
skliper added a commit that referenced this issue Oct 31, 2019
Fixes #271 #272 #273 #274
Code reviewed and approved at 20191030 CCB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants