Skip to content

Commit

Permalink
Merge pull request #122 from jphickey/fix-121-formats
Browse files Browse the repository at this point in the history
Fix #121, correct casting on printf format strings
  • Loading branch information
dzbaker authored Jan 11, 2024
2 parents 77b016d + 9f6138a commit b540e3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fsw/src/ds_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ void DS_AppSendHkCmd(void)
/* If the filter table name is invalid, send an event and erase any
* stale/misleading filename from the HK packet */
CFE_EVS_SendEvent(DS_APPHK_FILTER_TBL_ERR_EID, CFE_EVS_EventType_ERROR,
"Invalid filter tbl name in DS_AppSendHkCmd. Name=%s, Err=0x%08X", FilterTblName, Status);
"Invalid filter tbl name in DS_AppSendHkCmd. Name=%s, Err=0x%08X", FilterTblName,
(unsigned int)Status);

memset(PayloadPtr->FilterTblFilename, 0, sizeof(PayloadPtr->FilterTblFilename));
}
Expand Down
2 changes: 1 addition & 1 deletion fsw/src/ds_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ void DS_FileCloseDest(int32 FileIndex)
*/
CFE_EVS_SendEvent(DS_MOVE_FILE_ERR_EID, CFE_EVS_EventType_ERROR,
"FILE MOVE error: src = '%s', tgt = '%s', result = %d", FileStatus->FileName,
PathName, OS_result);
PathName, (int)OS_result);
}
}
else
Expand Down

0 comments on commit b540e3b

Please sign in to comment.