diff --git a/fsw/src/sample_lib.c b/fsw/src/sample_lib.c index 5275f65..f44e975 100644 --- a/fsw/src/sample_lib.c +++ b/fsw/src/sample_lib.c @@ -65,8 +65,12 @@ int32 SAMPLE_LIB_Init(void) /* ensure termination */ SAMPLE_LIB_Buffer[sizeof(SAMPLE_LIB_Buffer) - 1] = 0; - CFE_Config_GetVersionString(VersionString, SAMPLE_LIB_CFG_MAX_VERSION_STR_LEN, "Sample Lib", - SAMPLE_LIB_VERSION, SAMPLE_LIB_BUILD_CODENAME, SAMPLE_LIB_LAST_OFFICIAL); + CFE_Config_GetVersionString(VersionString, + SAMPLE_LIB_CFG_MAX_VERSION_STR_LEN, + "Sample Lib", + SAMPLE_LIB_VERSION, + SAMPLE_LIB_BUILD_CODENAME, + SAMPLE_LIB_LAST_OFFICIAL); OS_printf("SAMPLE Lib Initialized.%s\n", VersionString); diff --git a/fsw/src/sample_lib_version.h b/fsw/src/sample_lib_version.h index d0177e7..660fe16 100644 --- a/fsw/src/sample_lib_version.h +++ b/fsw/src/sample_lib_version.h @@ -26,17 +26,18 @@ /* Development Build Macro Definitions */ -#define SAMPLE_LIB_BUILD_NUMBER 0 /*!< Development Build: Number of commits since baseline */ -#define SAMPLE_LIB_BUILD_BASELINE "v7.0.0" /*!< Development Build: git tag that is the base for the current development */ -#define SAMPLE_LIB_BUILD_DEV_CYCLE "v7.0.0" /**< @brief Development: Release name for current development cycle */ -#define SAMPLE_LIB_BUILD_CODENAME "Draco" /**< @brief: Development: Code name for the current build */ +#define SAMPLE_LIB_BUILD_NUMBER 0 /*!< Development Build: Number of commits since baseline */ +#define SAMPLE_LIB_BUILD_BASELINE \ + "v7.0.0" /*!< Development Build: git tag that is the base for the current development */ +#define SAMPLE_LIB_BUILD_DEV_CYCLE "v7.0.0" /**< @brief Development: Release name for current development cycle */ +#define SAMPLE_LIB_BUILD_CODENAME "Draco" /**< @brief: Development: Code name for the current build */ /* * Version Macros, see \ref cfsversions for definitions. */ -#define SAMPLE_LIB_MAJOR_VERSION 7 /*!< @brief Major version number */ -#define SAMPLE_LIB_MINOR_VERSION 0 /*!< @brief Minor version number */ -#define SAMPLE_LIB_REVISION 0 /*!< @brief Revision version number. Value of 0 indicates a development version.*/ +#define SAMPLE_LIB_MAJOR_VERSION 7 /*!< @brief Major version number */ +#define SAMPLE_LIB_MINOR_VERSION 0 /*!< @brief Minor version number */ +#define SAMPLE_LIB_REVISION 0 /*!< @brief Revision version number. Value of 0 indicates a development version.*/ /** * @brief Last official release. @@ -71,9 +72,9 @@ /** * @brief Max Version String length. - * + * * Maximum length that a sample_lib version string can be. - * + * */ #define SAMPLE_LIB_CFG_MAX_VERSION_STR_LEN 256 diff --git a/unit-test/coveragetest/coveragetest_sample_lib.c b/unit-test/coveragetest/coveragetest_sample_lib.c index 9a9f7c3..dcae281 100644 --- a/unit-test/coveragetest/coveragetest_sample_lib.c +++ b/unit-test/coveragetest/coveragetest_sample_lib.c @@ -63,11 +63,11 @@ typedef struct * A local helper (hook) function for the OS_printf stub provided by OSAL. * This confirms internal content of the format string and arguments. */ -static int32 UT_printf_hook(void *UserObj, int32 StubRetcode, uint32 CallCount, const UT_StubContext_t *Context, - va_list va) +static int32 +UT_printf_hook(void *UserObj, int32 StubRetcode, uint32 CallCount, const UT_StubContext_t *Context, va_list va) { SAMPLE_LIB_Function_TestState_t *State = UserObj; - const char * string = UT_Hook_GetArgValueByName(Context, "string", const char *); + const char *string = UT_Hook_GetArgValueByName(Context, "string", const char *); /* * The OS_printf() stub passes format string as the argument @@ -173,7 +173,9 @@ void Sample_UT_Setup(void) /* * Teardown function after every test */ -void Sample_UT_TearDown(void) {} +void Sample_UT_TearDown(void) +{ +} /* * Register the test cases to execute with the unit test tool