Skip to content

Commit

Permalink
Fix nasa#2175, Rename Initialization Event IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Oct 21, 2022
1 parent 8a87314 commit 6b9ff97
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion modules/evs/fsw/inc/cfe_evs_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
*
* Event Services Task initialization complete.
*/
#define CFE_EVS_STARTUP_EID 1
#define CFE_EVS_INIT_INF_EID 1

/**
* \brief EVS Write Event Log Command File Write Entry Failed Event ID
Expand Down
2 changes: 1 addition & 1 deletion modules/evs/fsw/src/cfe_evs_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ int32 CFE_EVS_TaskInit(void)

/* Write the AppID to the global location, now that the rest of initialization is done */
CFE_EVS_Global.EVS_AppID = AppID;
EVS_SendEvent(CFE_EVS_STARTUP_EID, CFE_EVS_EventType_INFORMATION, "cFE EVS Initialized: %s", CFE_VERSION_STRING);
EVS_SendEvent(CFE_EVS_INIT_INF_EID, CFE_EVS_EventType_INFORMATION, "cFE EVS Initialized: %s", CFE_VERSION_STRING);

return CFE_SUCCESS;
}
Expand Down
2 changes: 1 addition & 1 deletion modules/sb/fsw/inc/cfe_sb_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
*
* Software Bus Services Task initialization complete.
*/
#define CFE_SB_INIT_EID 1
#define CFE_SB_INIT_INF_EID 1

/**
* \brief SB Create Pipe API Bad Argument Event ID
Expand Down
4 changes: 2 additions & 2 deletions modules/sb/fsw/src/cfe_sb_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ int32 CFE_SB_AppInit(void)
return Status;
}

Status =
CFE_EVS_SendEvent(CFE_SB_INIT_EID, CFE_EVS_EventType_INFORMATION, "cFE SB Initialized: %s", CFE_VERSION_STRING);
Status = CFE_EVS_SendEvent(CFE_SB_INIT_INF_EID, CFE_EVS_EventType_INFORMATION, "cFE SB Initialized: %s",
CFE_VERSION_STRING);
if (Status != CFE_SUCCESS)
{
CFE_ES_WriteToSysLog("%s: Error sending init event:RC=0x%08X\n", __func__, (unsigned int)Status);
Expand Down
6 changes: 3 additions & 3 deletions modules/sb/ut-coverage/sb_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ void Test_SB_Main_RcvErr(void)

CFE_UtAssert_EVENTCOUNT(6);

CFE_UtAssert_EVENTSENT(CFE_SB_INIT_EID);
CFE_UtAssert_EVENTSENT(CFE_SB_INIT_INF_EID);

CFE_UtAssert_EVENTSENT(CFE_SB_Q_RD_ERR_EID);

Expand Down Expand Up @@ -443,7 +443,7 @@ void Test_SB_Main_Nominal(void)

CFE_UtAssert_EVENTCOUNT(6);

CFE_UtAssert_EVENTSENT(CFE_SB_INIT_EID);
CFE_UtAssert_EVENTSENT(CFE_SB_INIT_INF_EID);
CFE_UtAssert_EVENTSENT(CFE_SB_CMD0_RCVD_EID);

/* remove the handler so the pipe can be deleted */
Expand Down Expand Up @@ -616,7 +616,7 @@ void Test_SB_Cmds_RoutingInfoDef(void)

CFE_UtAssert_EVENTCOUNT(5);

CFE_UtAssert_EVENTSENT(CFE_SB_INIT_EID);
CFE_UtAssert_EVENTSENT(CFE_SB_INIT_INF_EID);

CFE_UtAssert_EVENTSENT(CFE_SB_SUBSCRIPTION_RCVD_EID);

Expand Down
2 changes: 1 addition & 1 deletion modules/time/fsw/inc/cfe_time_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
*
* Time Services Task Initialization complete.
*/
#define CFE_TIME_INIT_EID 1
#define CFE_TIME_INIT_INF_EID 1

/**
* \brief TIME No-op Command Success Event ID
Expand Down
2 changes: 1 addition & 1 deletion modules/time/fsw/src/cfe_time_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ int32 CFE_TIME_TaskInit(void)
return Status;
}

Status = CFE_EVS_SendEvent(CFE_TIME_INIT_EID, CFE_EVS_EventType_INFORMATION, "cFE TIME Initialized: %s",
Status = CFE_EVS_SendEvent(CFE_TIME_INIT_INF_EID, CFE_EVS_EventType_INFORMATION, "cFE TIME Initialized: %s",
CFE_VERSION_STRING);
if (Status != CFE_SUCCESS)
{
Expand Down

0 comments on commit 6b9ff97

Please sign in to comment.