@@ -672,7 +672,8 @@ int CF_CFDP_RecvMd(CF_Transaction_t *t, CF_Logical_PduBuffer_t *ph)
672672 if (!CF_CODEC_IS_OK (ph -> pdec ))
673673 {
674674 CFE_EVS_SendEvent (CF_EID_ERR_PDU_MD_SHORT , CFE_EVS_EventType_ERROR ,
675- "CF: metadata packet too short: %lu bytes received" , CF_CODEC_GET_SIZE (ph -> pdec ));
675+ "CF: metadata packet too short: %lu bytes received" ,
676+ (unsigned long )CF_CODEC_GET_SIZE (ph -> pdec ));
676677 goto err_out ;
677678 }
678679
@@ -748,7 +749,7 @@ int CF_CFDP_RecvFd(CF_Transaction_t *t, CF_Logical_PduBuffer_t *ph)
748749 if (!CF_CODEC_IS_OK (ph -> pdec ))
749750 {
750751 CFE_EVS_SendEvent (CF_EID_ERR_PDU_FD_SHORT , CFE_EVS_EventType_ERROR ,
751- "CF: filedata pdu too short: %lu bytes received" , CF_CODEC_GET_SIZE (ph -> pdec ));
752+ "CF: filedata pdu too short: %lu bytes received" , ( unsigned long ) CF_CODEC_GET_SIZE (ph -> pdec ));
752753 ++ CF_AppData .hk .channel_hk [t -> chan_num ].counters .recv .error ;
753754 ret = -1 ;
754755 }
@@ -782,7 +783,7 @@ int CF_CFDP_RecvEof(CF_Transaction_t *t, CF_Logical_PduBuffer_t *ph)
782783 if (!CF_CODEC_IS_OK (ph -> pdec ))
783784 {
784785 CFE_EVS_SendEvent (CF_EID_ERR_PDU_EOF_SHORT , CFE_EVS_EventType_ERROR ,
785- "CF: eof pdu too short: %lu bytes received" , CF_CODEC_GET_SIZE (ph -> pdec ));
786+ "CF: eof pdu too short: %lu bytes received" , ( unsigned long ) CF_CODEC_GET_SIZE (ph -> pdec ));
786787 ret = -1 ;
787788 }
788789
@@ -807,7 +808,7 @@ int CF_CFDP_RecvAck(CF_Transaction_t *t, CF_Logical_PduBuffer_t *ph)
807808 if (!CF_CODEC_IS_OK (ph -> pdec ))
808809 {
809810 CFE_EVS_SendEvent (CF_EID_ERR_PDU_ACK_SHORT , CFE_EVS_EventType_ERROR ,
810- "CF: ack pdu too short: %lu bytes received" , CF_CODEC_GET_SIZE (ph -> pdec ));
811+ "CF: ack pdu too short: %lu bytes received" , ( unsigned long ) CF_CODEC_GET_SIZE (ph -> pdec ));
811812 ret = -1 ;
812813 }
813814
@@ -833,7 +834,7 @@ int CF_CFDP_RecvFin(CF_Transaction_t *t, CF_Logical_PduBuffer_t *ph)
833834 if (!CF_CODEC_IS_OK (ph -> pdec ))
834835 {
835836 CFE_EVS_SendEvent (CF_EID_ERR_PDU_FIN_SHORT , CFE_EVS_EventType_ERROR ,
836- "CF: fin pdu too short: %lu bytes received" , CF_CODEC_GET_SIZE (ph -> pdec ));
837+ "CF: fin pdu too short: %lu bytes received" , ( unsigned long ) CF_CODEC_GET_SIZE (ph -> pdec ));
837838 ret = -1 ;
838839 }
839840
@@ -859,7 +860,7 @@ int CF_CFDP_RecvNak(CF_Transaction_t *t, CF_Logical_PduBuffer_t *ph)
859860 if (!CF_CODEC_IS_OK (ph -> pdec ))
860861 {
861862 CFE_EVS_SendEvent (CF_EID_ERR_PDU_NAK_SHORT , CFE_EVS_EventType_ERROR ,
862- "CF: nak pdu too short: %lu bytes received" , CF_CODEC_GET_SIZE (ph -> pdec ));
863+ "CF: nak pdu too short: %lu bytes received" , ( unsigned long ) CF_CODEC_GET_SIZE (ph -> pdec ));
863864 ret = -1 ;
864865 }
865866
@@ -995,7 +996,7 @@ int32 CF_CFDP_InitEngine(void)
995996 CF_AppData .config_table -> chan [i ].pipe_depth_input , nbuf )) != CFE_SUCCESS )
996997 {
997998 CFE_EVS_SendEvent (CF_EID_ERR_INIT_PIPE , CFE_EVS_EventType_ERROR ,
998- "CF: failed to create pipe %s, returned 0x%08x " , nbuf , ret );
999+ "CF: failed to create pipe %s, returned 0x%08lx " , nbuf , ( unsigned long ) ret );
9991000 goto err_out ;
10001001 }
10011002
@@ -1004,8 +1005,8 @@ int32 CF_CFDP_InitEngine(void)
10041005 CF_AppData .config_table -> chan [i ].pipe_depth_input )) != CFE_SUCCESS )
10051006 {
10061007 CFE_EVS_SendEvent (CF_EID_ERR_INIT_SUB , CFE_EVS_EventType_ERROR ,
1007- "CF: failed to subscribe to MID 0x%04x , returned 0x%08x " ,
1008- CF_AppData .config_table -> chan [i ].mid_input , ret );
1008+ "CF: failed to subscribe to MID 0x%lx , returned 0x%08lx " ,
1009+ ( unsigned long ) CF_AppData .config_table -> chan [i ].mid_input , ( unsigned long ) ret );
10091010 goto err_out ;
10101011 }
10111012
@@ -1016,8 +1017,8 @@ int32 CF_CFDP_InitEngine(void)
10161017 if (ret != OS_SUCCESS )
10171018 {
10181019 CFE_EVS_SendEvent (CF_EID_ERR_INIT_SEM , CFE_EVS_EventType_ERROR ,
1019- "CF: failed to get sem id for name %s, error=0x%08x " ,
1020- CF_AppData .config_table -> chan [i ].sem_name , ret );
1020+ "CF: failed to get sem id for name %s, error=%ld " ,
1021+ CF_AppData .config_table -> chan [i ].sem_name , ( long ) ret );
10211022 goto err_out ;
10221023 }
10231024 }
@@ -1253,9 +1254,10 @@ static void CF_CFDP_TxFile_Initiate(CF_Transaction_t *t, CF_CFDP_Class_t cfdp_cl
12531254 uint8 priority , CF_EntityId_t dest_id )
12541255{
12551256 CFE_EVS_SendEvent (CF_EID_INF_CFDP_S_START_SEND , CFE_EVS_EventType_INFORMATION ,
1256- "CF: start class %d tx of file %d:%.*s -> %d:%.*s" , cfdp_class + 1 ,
1257- CF_AppData .config_table -> local_eid , CF_FILENAME_MAX_LEN , t -> history -> fnames .src_filename , dest_id ,
1258- CF_FILENAME_MAX_LEN , t -> history -> fnames .dst_filename );
1257+ "CF: start class %d tx of file %lu:%.*s -> %lu:%.*s" , cfdp_class + 1 ,
1258+ (unsigned long )CF_AppData .config_table -> local_eid , CF_FILENAME_MAX_LEN ,
1259+ t -> history -> fnames .src_filename , (unsigned long )dest_id , CF_FILENAME_MAX_LEN ,
1260+ t -> history -> fnames .dst_filename );
12591261
12601262 CF_CFDP_InitTxnTxFile (t , cfdp_class , keep , chan , priority );
12611263
@@ -1332,7 +1334,7 @@ static int32 CF_CFDP_PlaybackDir_Initiate(CF_Playback_t *p, const char *src_file
13321334 if (ret != OS_SUCCESS )
13331335 {
13341336 CFE_EVS_SendEvent (CF_EID_ERR_CFDP_OPENDIR , CFE_EVS_EventType_ERROR ,
1335- "CF: failed to open playback directory %s, error=0x%08x " , src_filename , ret );
1337+ "CF: failed to open playback directory %s, error=%ld " , src_filename , ( long ) ret );
13361338 ++ CF_AppData .hk .channel_hk [chan ].counters .fault .directory_read ;
13371339 goto err_out ;
13381340 }
0 commit comments