Skip to content

Commit 51a7cb1

Browse files
committed
Merge pull request nasa#80 from dzbaker:fix-79
Fix nasa#79, updating tblCRCTool to use new versioning system.
2 parents b73ddf4 + ebec527 commit 51a7cb1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

cfe_ts_crc.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ int main(int argc, char **argv)
115115
/* check for valid input */
116116
if ((argc != 2) || (strncmp(argv[1], "--help", 100) == 0))
117117
{
118-
CFE_Config_GetVersionString(VersionString, CFE_TS_CRC_CFG_MAX_VERSION_STR_LEN, "tblCRCTool",
119-
CFE_TS_CRC_VERSION, CFE_TS_CRC_BUILD_CODENAME, CFE_TS_CRC_LAST_OFFICIAL);
118+
snprintf(VersionString, CFE_TS_CRC_CFG_MAX_VERSION_STR_LEN,
119+
"%s %s %s (Codename %s), Last Official Release: %s %s)",
120+
"tblCRCTool", CFE_TS_CRC_REVISION == 0 ? "Development Build" : "Release",
121+
CFE_TS_CRC_VERSION, CFE_TS_CRC_BUILD_CODENAME, "tblCRCTool", CFE_TS_CRC_LAST_OFFICIAL);
120122
printf("%s\n", VersionString);
121123
printf("\nUsage: cfe_ts_crc [filename]\n");
122124
exit(EXIT_FAILURE);

0 commit comments

Comments
 (0)