-
Notifications
You must be signed in to change notification settings - Fork 57
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
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
CCB:2022-06-08 APPROVED |
nasa/PSP#347, Add CFE_PSP_StatusToString and CFE_PSP_STATUS_C
*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
*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]>
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