@@ -87,7 +87,8 @@ void SAMPLE_APP_Main(void)
8787 }
8888 else
8989 {
90- CFE_EVS_SendEvent (SAMPLE_APP_PIPE_ERR_EID , CFE_EVS_EventType_ERROR ,
90+ CFE_EVS_SendEvent (SAMPLE_APP_PIPE_ERR_EID ,
91+ CFE_EVS_EventType_ERROR ,
9192 "SAMPLE APP: SB Pipe Read Error, App Will Exit" );
9293
9394 SAMPLE_APP_Data .RunStatus = CFE_ES_RunStatus_APP_ERROR ;
@@ -130,18 +131,22 @@ CFE_Status_t SAMPLE_APP_Init(void)
130131 /*
131132 ** Initialize housekeeping packet (clear user data area).
132133 */
133- CFE_MSG_Init (CFE_MSG_PTR (SAMPLE_APP_Data .HkTlm .TelemetryHeader ), CFE_SB_ValueToMsgId (SAMPLE_APP_HK_TLM_MID ),
134+ CFE_MSG_Init (CFE_MSG_PTR (SAMPLE_APP_Data .HkTlm .TelemetryHeader ),
135+ CFE_SB_ValueToMsgId (SAMPLE_APP_HK_TLM_MID ),
134136 sizeof (SAMPLE_APP_Data .HkTlm ));
135137
136138 /*
137139 ** Create Software Bus message pipe.
138140 */
139- status = CFE_SB_CreatePipe (& SAMPLE_APP_Data .CommandPipe , SAMPLE_APP_PLATFORM_PIPE_DEPTH ,
141+ status = CFE_SB_CreatePipe (& SAMPLE_APP_Data .CommandPipe ,
142+ SAMPLE_APP_PLATFORM_PIPE_DEPTH ,
140143 SAMPLE_APP_PLATFORM_PIPE_NAME );
141144 if (status != CFE_SUCCESS )
142145 {
143- CFE_EVS_SendEvent (SAMPLE_APP_CR_PIPE_ERR_EID , CFE_EVS_EventType_ERROR ,
144- "Sample App: Error creating SB Command Pipe, RC = 0x%08lX" , (unsigned long )status );
146+ CFE_EVS_SendEvent (SAMPLE_APP_CR_PIPE_ERR_EID ,
147+ CFE_EVS_EventType_ERROR ,
148+ "Sample App: Error creating SB Command Pipe, RC = 0x%08lX" ,
149+ (unsigned long )status );
145150 }
146151 }
147152
@@ -153,8 +158,10 @@ CFE_Status_t SAMPLE_APP_Init(void)
153158 status = CFE_SB_Subscribe (CFE_SB_ValueToMsgId (SAMPLE_APP_SEND_HK_MID ), SAMPLE_APP_Data .CommandPipe );
154159 if (status != CFE_SUCCESS )
155160 {
156- CFE_EVS_SendEvent (SAMPLE_APP_SUB_HK_ERR_EID , CFE_EVS_EventType_ERROR ,
157- "Sample App: Error Subscribing to HK request, RC = 0x%08lX" , (unsigned long )status );
161+ CFE_EVS_SendEvent (SAMPLE_APP_SUB_HK_ERR_EID ,
162+ CFE_EVS_EventType_ERROR ,
163+ "Sample App: Error Subscribing to HK request, RC = 0x%08lX" ,
164+ (unsigned long )status );
158165 }
159166 }
160167
@@ -166,8 +173,10 @@ CFE_Status_t SAMPLE_APP_Init(void)
166173 status = CFE_SB_Subscribe (CFE_SB_ValueToMsgId (SAMPLE_APP_CMD_MID ), SAMPLE_APP_Data .CommandPipe );
167174 if (status != CFE_SUCCESS )
168175 {
169- CFE_EVS_SendEvent (SAMPLE_APP_SUB_CMD_ERR_EID , CFE_EVS_EventType_ERROR ,
170- "Sample App: Error Subscribing to Commands, RC = 0x%08lX" , (unsigned long )status );
176+ CFE_EVS_SendEvent (SAMPLE_APP_SUB_CMD_ERR_EID ,
177+ CFE_EVS_EventType_ERROR ,
178+ "Sample App: Error Subscribing to Commands, RC = 0x%08lX" ,
179+ (unsigned long )status );
171180 }
172181 }
173182
@@ -176,22 +185,33 @@ CFE_Status_t SAMPLE_APP_Init(void)
176185 /*
177186 ** Register Example Table(s)
178187 */
179- status = CFE_TBL_Register (& SAMPLE_APP_Data .TblHandles [0 ], "ExampleTable" , sizeof (SAMPLE_APP_ExampleTable_t ),
180- CFE_TBL_OPT_DEFAULT , SAMPLE_APP_TblValidationFunc );
188+ status = CFE_TBL_Register (& SAMPLE_APP_Data .TblHandles [0 ],
189+ "ExampleTable" ,
190+ sizeof (SAMPLE_APP_ExampleTable_t ),
191+ CFE_TBL_OPT_DEFAULT ,
192+ SAMPLE_APP_TblValidationFunc );
181193 if (status != CFE_SUCCESS )
182194 {
183- CFE_EVS_SendEvent (SAMPLE_APP_TABLE_REG_ERR_EID , CFE_EVS_EventType_ERROR ,
184- "Sample App: Error Registering Example Table, RC = 0x%08lX" , (unsigned long )status );
195+ CFE_EVS_SendEvent (SAMPLE_APP_TABLE_REG_ERR_EID ,
196+ CFE_EVS_EventType_ERROR ,
197+ "Sample App: Error Registering Example Table, RC = 0x%08lX" ,
198+ (unsigned long )status );
185199 }
186200 else
187201 {
188202 status = CFE_TBL_Load (SAMPLE_APP_Data .TblHandles [0 ], CFE_TBL_SRC_FILE , SAMPLE_APP_PLATFORM_TABLE_FILE );
189203 }
190204
191- CFE_Config_GetVersionString (VersionString , SAMPLE_APP_CFG_MAX_VERSION_STR_LEN , "Sample App" , SAMPLE_APP_VERSION ,
192- SAMPLE_APP_BUILD_CODENAME , SAMPLE_APP_LAST_OFFICIAL );
205+ CFE_Config_GetVersionString (VersionString ,
206+ SAMPLE_APP_CFG_MAX_VERSION_STR_LEN ,
207+ "Sample App" ,
208+ SAMPLE_APP_VERSION ,
209+ SAMPLE_APP_BUILD_CODENAME ,
210+ SAMPLE_APP_LAST_OFFICIAL );
193211
194- CFE_EVS_SendEvent (SAMPLE_APP_INIT_INF_EID , CFE_EVS_EventType_INFORMATION , "Sample App Initialized.%s" ,
212+ CFE_EVS_SendEvent (SAMPLE_APP_INIT_INF_EID ,
213+ CFE_EVS_EventType_INFORMATION ,
214+ "Sample App Initialized.%s" ,
195215 VersionString );
196216 }
197217
0 commit comments