Skip to content

Commit 6b76dd7

Browse files
author
Jacob Hageman
committed
Fix #1200, Report status in CFE_ES_FileWriteByteCntErr event
1 parent cd8959b commit 6b76dd7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/es/fsw/src/cfe_es_task.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,12 +1990,12 @@ int32 CFE_ES_DumpCDSRegistryCmd(const CFE_ES_DumpCDSRegistryCmd_t *data)
19901990
/* a byte count discrepancy has been*/
19911991
/* detected during the file write */
19921992
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
1993-
void CFE_ES_FileWriteByteCntErr(const char *Filename, size_t Requested, size_t Actual)
1993+
void CFE_ES_FileWriteByteCntErr(const char *Filename, size_t Requested, int32 Status)
19941994
{
19951995

19961996
CFE_EVS_SendEvent(CFE_ES_FILEWRITE_ERR_EID, CFE_EVS_EventType_ERROR,
1997-
"File write,byte cnt err,file %s,request=%u,actual=%u", Filename, (unsigned int)Requested,
1998-
(unsigned int)Actual);
1997+
"File write,byte cnt err,file %s,request=%u,status=0x%08x", Filename, (unsigned int)Requested,
1998+
(unsigned int)Status);
19991999

20002000
} /* End of CFE_ES_FileWriteByteCntErr() */
20012001

modules/es/fsw/src/cfe_es_task.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ int32 CFE_ES_DumpCDSRegistryCmd(const CFE_ES_DumpCDSRegistryCmd_t *data);
197197
*/
198198
bool CFE_ES_ValidateHandle(CFE_ES_MemHandle_t Handle);
199199
bool CFE_ES_VerifyCmdLength(CFE_MSG_Message_t *MsgPtr, size_t ExpectedLength);
200-
void CFE_ES_FileWriteByteCntErr(const char *Filename, size_t Requested, size_t Actual);
200+
void CFE_ES_FileWriteByteCntErr(const char *Filename, size_t Requested, int32 Status);
201201

202202
/*************************************************************************/
203203

0 commit comments

Comments
 (0)