Skip to content

Commit

Permalink
Merge pull request #80 from dzbaker:fix-79
Browse files Browse the repository at this point in the history
Fix #79, updating tblCRCTool to use new versioning system.
  • Loading branch information
dzbaker committed Jan 18, 2024
2 parents b73ddf4 + ebec527 commit 51a7cb1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cfe_ts_crc.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,10 @@ int main(int argc, char **argv)
/* check for valid input */
if ((argc != 2) || (strncmp(argv[1], "--help", 100) == 0))
{
CFE_Config_GetVersionString(VersionString, CFE_TS_CRC_CFG_MAX_VERSION_STR_LEN, "tblCRCTool",
CFE_TS_CRC_VERSION, CFE_TS_CRC_BUILD_CODENAME, CFE_TS_CRC_LAST_OFFICIAL);
snprintf(VersionString, CFE_TS_CRC_CFG_MAX_VERSION_STR_LEN,
"%s %s %s (Codename %s), Last Official Release: %s %s)",
"tblCRCTool", CFE_TS_CRC_REVISION == 0 ? "Development Build" : "Release",
CFE_TS_CRC_VERSION, CFE_TS_CRC_BUILD_CODENAME, "tblCRCTool", CFE_TS_CRC_LAST_OFFICIAL);
printf("%s\n", VersionString);
printf("\nUsage: cfe_ts_crc [filename]\n");
exit(EXIT_FAILURE);
Expand Down

0 comments on commit 51a7cb1

Please sign in to comment.