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

LC_SbInit casts every Status to unsigned int in every event message #9

Closed
skliper opened this issue Apr 22, 2022 · 1 comment
Closed
Labels

Comments

@skliper
Copy link
Contributor

skliper commented Apr 22, 2022

LC_SbInit is casting the Status in every event send to an unsigned int. The cast appears unnecessary, CFE_EVS_SendEvent takes a variable length of arguments because it does a formatting of the string with the values sent AND the format in the send events is %08X (print 8 characters in upper case hex).

Imported from GSFCCFS-1099

@skliper
Copy link
Contributor Author

skliper commented Jun 14, 2022

The cast is necessary since Status is of type int32, and the print format expects unsigned int. Note the preferred solution for consistent cFE status reporting is to use CFE_ES_StatusToString added in nasa/cFE#2113.

@skliper skliper closed this as completed Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant