Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid compile warnings due to printf format #31

Merged
merged 1 commit into from
Dec 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions fsw/src/sample_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ int32 SAMPLE_AppInit( void )
CFE_EVS_BINARY_FILTER);
if (status != CFE_SUCCESS)
{
CFE_ES_WriteToSysLog("Sample App: Error Registering Events, RC = 0x%08X\n",
status);
CFE_ES_WriteToSysLog("Sample App: Error Registering Events, RC = 0x%08lX\n",
(unsigned long)status);
return ( status );
}

Expand All @@ -184,8 +184,8 @@ int32 SAMPLE_AppInit( void )
Sample_AppData.PipeName);
if (status != CFE_SUCCESS)
{
CFE_ES_WriteToSysLog("Sample App: Error creating pipe, RC = 0x%08X\n",
status);
CFE_ES_WriteToSysLog("Sample App: Error creating pipe, RC = 0x%08lX\n",
(unsigned long)status);
return ( status );
}

Expand All @@ -196,8 +196,8 @@ int32 SAMPLE_AppInit( void )
Sample_AppData.SAMPLE_CommandPipe);
if (status != CFE_SUCCESS)
{
CFE_ES_WriteToSysLog("Sample App: Error Subscribing to HK request, RC = 0x%08X\n",
status);
CFE_ES_WriteToSysLog("Sample App: Error Subscribing to HK request, RC = 0x%08lX\n",
(unsigned long)status);
return ( status );
}

Expand All @@ -208,8 +208,8 @@ int32 SAMPLE_AppInit( void )
Sample_AppData.SAMPLE_CommandPipe);
if (status != CFE_SUCCESS )
{
CFE_ES_WriteToSysLog("Sample App: Error Subscribing to Command, RC = 0x%08X\n",
status);
CFE_ES_WriteToSysLog("Sample App: Error Subscribing to Command, RC = 0x%08lX\n",
(unsigned long)status);

return ( status );
}
Expand All @@ -225,7 +225,7 @@ int32 SAMPLE_AppInit( void )
if ( status != CFE_SUCCESS )
{
CFE_ES_WriteToSysLog("Sample App: Error Registering \
Table, RC = 0x%08X\n", status);
Table, RC = 0x%08lX\n", (unsigned long)status);

return ( status );
}
Expand Down Expand Up @@ -524,7 +524,7 @@ void SAMPLE_GetCrc( const char *TableName )
else
{
Crc = TblInfoPtr.Crc;
CFE_ES_WriteToSysLog("Sample App: CRC: 0x%08X\n\n", Crc);
CFE_ES_WriteToSysLog("Sample App: CRC: 0x%08lX\n\n", (unsigned long)Crc);
}

return;
Expand Down