Skip to content

Commit

Permalink
Merge pull request #144 from dzbaker:fix-139
Browse files Browse the repository at this point in the history
Fix #139, updating ELF2CFETBL to use new versioning system.
  • Loading branch information
dzbaker committed Jan 18, 2024
2 parents 7f2f8f0 + 998c26f commit ac1861c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions elf2cfetbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <limits.h>
#include "ELF_Structures.h"
#include "cfe_tbl_filedef.h"
#include "cfe_version.h"
#include "elf2cfetbl_version.h"

#define MAX_SECTION_HDR_NAME_LEN (128)
Expand Down Expand Up @@ -1267,8 +1266,11 @@ void OutputVersionInfo(void)
{
char VersionString[ELF2CFETBL_CFG_MAX_VERSION_STR_LEN];

CFE_Config_GetVersionString(VersionString, ELF2CFETBL_CFG_MAX_VERSION_STR_LEN, "elf2cfetbl",
ELF2CFETBL_VERSION, ELF2CFETBL_BUILD_CODENAME, ELF2CFETBL_LAST_OFFICIAL);
snprintf(VersionString, ELF2CFETBL_CFG_MAX_VERSION_STR_LEN,
"%s %s %s (Codename %s), Last Official Release: %s %s)",
"elf2cfetbl", ELF2CFETBL_REVISION == 0 ? "Development Build" : "Release",
ELF2CFETBL_VERSION, ELF2CFETBL_BUILD_CODENAME, "elf2cfetbl",
ELF2CFETBL_LAST_OFFICIAL);

printf("\n%s\n", VersionString);
}
Expand Down

0 comments on commit ac1861c

Please sign in to comment.