Skip to content

Commit

Permalink
TEST: Print out valid checksum on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Apr 27, 2023
1 parent 43270f5 commit 0b6a328
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/msg/fsw/src/cfe_msg_sechdr_checksum.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,9 @@ CFE_Status_t CFE_MSG_ValidateChecksum(const CFE_MSG_Message_t *MsgPtr, bool *IsV
/* Compute, valid if == 0 */
*IsValid = (CFE_MSG_ComputeCheckSum(MsgPtr) == 0);

/* TODO just for testing */
if (!*IsValid)
OS_printf("***Checksum failed: valid is 0x%02x\n", CFE_MSG_ComputeCheckSum(MsgPtr));

return CFE_SUCCESS;
}

0 comments on commit 0b6a328

Please sign in to comment.