Skip to content

Commit

Permalink
Merge pull request #28 from nasa/ic-20200121
Browse files Browse the repository at this point in the history
Integration Candidate 20200121
  • Loading branch information
skliper authored Jan 27, 2020
2 parents bdbd60a + 4742800 commit f1acbd9
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions fsw/src/sch_lab_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ void SCH_Lab_AppMain(void)
Status = SCH_LAB_AppInit();
if ( Status != CFE_SUCCESS )
{
CFE_ES_WriteToSysLog("SCHEULE APP: Error Initializing RC = 0x%08X\n", Status);
CFE_ES_WriteToSysLog("SCH_LAB: Error Initializing RC = 0x%08lX\n",
(unsigned long)Status);

}

Expand All @@ -81,7 +82,8 @@ void SCH_Lab_AppMain(void)
Status = CFE_TBL_Manage(TblHandles);
if ( Status != CFE_SUCCESS )
{
CFE_ES_WriteToSysLog("SCHEULE APP: Error managing table RC = 0x%08X\n", Status);
CFE_ES_WriteToSysLog("SCH_LAB: Error managing table RC = 0x%08lX\n",
(unsigned long)Status);
CFE_TBL_ReleaseAddress(TblHandles);

}
Expand Down Expand Up @@ -128,8 +130,8 @@ void SCH_Lab_AppMain(void)
Status = CFE_TBL_ReleaseAddress(TblHandles);
if ( Status != CFE_SUCCESS )
{
CFE_ES_WriteToSysLog("SCHEULE APP: Error Releasing Table \
SCH_LAB_SchTbl, RC = 0x%08X\n", Status);
CFE_ES_WriteToSysLog("SCH_LAB: Error Releasing Table SCH_LAB_SchTbl, RC = 0x%08lX\n",
(unsigned long)Status);

}

Expand Down Expand Up @@ -157,8 +159,8 @@ int32 SCH_LAB_AppInit(void)
&SCH_LAB_TblValidation);
if ( Status != CFE_SUCCESS )
{
CFE_ES_WriteToSysLog("SCHEULE APP: Error Registering \
SCH_LAB_SchTbl, RC = 0x%08X\n", Status);
CFE_ES_WriteToSysLog("SCH_LAB: Error Registering SCH_LAB_SchTbl, RC = 0x%08lX\n",
(unsigned long)Status);

return ( Status );
}
Expand All @@ -170,8 +172,8 @@ int32 SCH_LAB_AppInit(void)
Status = CFE_TBL_Load(TblHandles, CFE_TBL_SRC_FILE, SCH_TBL_DEFAULT_FILE);
if ( Status != CFE_SUCCESS )
{
CFE_ES_WriteToSysLog("SCHEULE APP: Error Loading Table \
SCH_LAB_SchTbl, RC = 0x%08X\n", Status);
CFE_ES_WriteToSysLog("SCH_LAB: Error Loading Table SCH_LAB_SchTbl, RC = 0x%08lX\n",
(unsigned long)Status);
CFE_TBL_ReleaseAddress(TblHandles);

return ( Status );
Expand All @@ -182,10 +184,11 @@ int32 SCH_LAB_AppInit(void)
** Get Table Address
*/
Status = CFE_TBL_GetAddress((void **)&MySchTBL, TblHandles);
if ( Status != CFE_TBL_INFO_UPDATED )
if ( Status != CFE_SUCCESS &&
Status != CFE_TBL_INFO_UPDATED )
{
CFE_ES_WriteToSysLog("SCHEULE APP: Error Getting Table's Address \
SCH_LAB_SchTbl, RC = 0x%08X\n", Status);
CFE_ES_WriteToSysLog("SCH_LAB: Error Getting Table's Address SCH_LAB_SchTbl, RC = 0x%08lX\n",
(unsigned long)Status);

return ( Status );
}
Expand Down

0 comments on commit f1acbd9

Please sign in to comment.