Fix #345, Add CFE_PSP_StatusToString and CFE_PSP_STATUS_C#347
Merged
Fix #345, Add CFE_PSP_StatusToString and CFE_PSP_STATUS_C#347
Conversation
605ec72 to
9a0554b
Compare
|
|
||
| if (status_string != NULL) | ||
| { | ||
| snprintf(*status_string, sizeof(*status_string), "%ld", (long)status); |
Check warning
Code scanning / CodeQL-coding-standard
Unchecked return value
|
|
||
| if (status_string != NULL) | ||
| { | ||
| snprintf(*status_string, sizeof(*status_string), "%ld", (long)status); |
Check warning
Code scanning / CodeQL-coding-standard
Unchecked function argument
| * See description in API and header file for detail | ||
| * | ||
| *-----------------------------------------------------------------*/ | ||
| char *CFE_PSP_StatusToString(CFE_PSP_Status_t status, CFE_PSP_StatusString_t *status_string) |
Check notice
Code scanning / CodeQL-coding-standard
Use of basic integral type
| * See description in API and header file for detail | ||
| * | ||
| *-----------------------------------------------------------------*/ | ||
| char *CFE_PSP_StatusToString(CFE_PSP_Status_t status, CFE_PSP_StatusString_t *status_string) |
Check notice
Code scanning / CodeQL-coding-standard
Use of basic integral type
| * See description in API and header file for detail | ||
| * | ||
| *-----------------------------------------------------------------*/ | ||
| char *CFE_PSP_StatusToString(CFE_PSP_Status_t status, CFE_PSP_StatusString_t *status_string) |
Check notice
Code scanning / CodeQL-coding-standard
Use of basic integral type
| *-----------------------------------------------------------------*/ | ||
| char *CFE_PSP_StatusToString(CFE_PSP_Status_t status, CFE_PSP_StatusString_t *status_string) | ||
| { | ||
| char *string = NULL; |
Check notice
Code scanning / CodeQL-coding-standard
Use of basic integral type
Contributor
|
CCB:2022-06-08 APPROVED |
astrogeco
added a commit
to nasa/cFS
that referenced
this pull request
Jun 10, 2022
nasa/PSP#347, Add CFE_PSP_StatusToString and CFE_PSP_STATUS_C
astrogeco
added a commit
to nasa/cFS
that referenced
this pull request
Jun 22, 2022
*Combines:* cFE v7.0.0-rc4+dev143 osal osal v6.0.0-rc4+dev87 psp v1.6.0-rc4+dev ci_lab v2.5.0-rc4+dev22 to_lab v2.5.0-rc4+dev21 sample_app v1.3.0-rc4+dev21 **Includes:** - nasa/cFE#2119, Endian macro mask before shift to avoid shift overflow warning - nasa/cFE#2115, Add macro for initializing command header *Add StatusToString API* - nasa/osal#1259, Add OS_StatusToString API - nasa/PSP#347, Add CFE_PSP_StatusToString and CFE_PSP_STATUS_C - nasa/cFE#2113, Add CFE_ES_StatusToString and CFE_STATUS_C *Remove registration of empty EVS filters* - nasa/ci_lab#111, Remove registration of empty EVS filters - nasa/to_lab#122, Remove registration of empty EVS filters - nasa/sample_app#175, Remove registration of empty event filters
2 tasks
astrogeco
added a commit
to nasa/cFS
that referenced
this pull request
Jun 22, 2022
*Combines:* cFE v7.0.0-rc4+dev143 osal osal v6.0.0-rc4+dev87 psp v1.6.0-rc4+dev ci_lab v2.5.0-rc4+dev22 to_lab v2.5.0-rc4+dev21 sample_app v1.3.0-rc4+dev21 **Includes:** - nasa/cFE#2119, Endian macro mask before shift to avoid shift overflow warning - nasa/cFE#2115, Add macro for initializing command header *Add StatusToString API* - nasa/osal#1259, Add OS_StatusToString API - nasa/PSP#347, Add CFE_PSP_StatusToString and CFE_PSP_STATUS_C - nasa/cFE#2113, Add CFE_ES_StatusToString and CFE_STATUS_C *Remove registration of empty EVS filters* - nasa/ci_lab#111, Remove registration of empty EVS filters - nasa/to_lab#122, Remove registration of empty EVS filters - nasa/sample_app#175, Remove registration of empty event filters Co-authored-by: Jacob Hageman <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist (Please check before submitting)
Describe the contribution
Testing performed
Added a few calls in cFE startup to exercise the function and it worked. PSP coverage for shared doesn't look to be fully implemented so didn't add tests yet.
Expected behavior changes
None, just adds an a useful API
System(s) tested on
Additional context
None
Third party code
None
Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC