Skip to content

Commit

Permalink
Merge pull request #25 from nasa/fix-23-syslog-writes
Browse files Browse the repository at this point in the history
Correct writes to syslog
  • Loading branch information
skliper authored Jan 21, 2020
2 parents bdbd60a + 3f7a87d commit 67378aa
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 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 @@ -184,8 +186,8 @@ int32 SCH_LAB_AppInit(void)
Status = CFE_TBL_GetAddress((void **)&MySchTBL, TblHandles);
if ( 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 67378aa

Please sign in to comment.