From a7916fc15317eff7e3590c0fc98424d3a94ffdf6 Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Wed, 17 Mar 2021 09:04:43 -0400 Subject: [PATCH] Fix #1200, Report status in CFE_ES_FileWriteByteCntErr event --- modules/es/fsw/src/cfe_es_task.c | 6 +++--- modules/es/fsw/src/cfe_es_task.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/es/fsw/src/cfe_es_task.c b/modules/es/fsw/src/cfe_es_task.c index b9154e9a2..c559c6625 100644 --- a/modules/es/fsw/src/cfe_es_task.c +++ b/modules/es/fsw/src/cfe_es_task.c @@ -1990,12 +1990,12 @@ int32 CFE_ES_DumpCDSRegistryCmd(const CFE_ES_DumpCDSRegistryCmd_t *data) /* a byte count discrepancy has been*/ /* detected during the file write */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -void CFE_ES_FileWriteByteCntErr(const char *Filename, size_t Requested, size_t Actual) +void CFE_ES_FileWriteByteCntErr(const char *Filename, size_t Requested, int32 Status) { CFE_EVS_SendEvent(CFE_ES_FILEWRITE_ERR_EID, CFE_EVS_EventType_ERROR, - "File write,byte cnt err,file %s,request=%u,actual=%u", Filename, (unsigned int)Requested, - (unsigned int)Actual); + "File write,byte cnt err,file %s,request=%u,status=0x%08x", Filename, (unsigned int)Requested, + (unsigned int)Status); } /* End of CFE_ES_FileWriteByteCntErr() */ diff --git a/modules/es/fsw/src/cfe_es_task.h b/modules/es/fsw/src/cfe_es_task.h index 2dd8f25e2..5a5c8ffdb 100644 --- a/modules/es/fsw/src/cfe_es_task.h +++ b/modules/es/fsw/src/cfe_es_task.h @@ -197,7 +197,7 @@ int32 CFE_ES_DumpCDSRegistryCmd(const CFE_ES_DumpCDSRegistryCmd_t *data); */ bool CFE_ES_ValidateHandle(CFE_ES_MemHandle_t Handle); bool CFE_ES_VerifyCmdLength(CFE_MSG_Message_t *MsgPtr, size_t ExpectedLength); -void CFE_ES_FileWriteByteCntErr(const char *Filename, size_t Requested, size_t Actual); +void CFE_ES_FileWriteByteCntErr(const char *Filename, size_t Requested, int32 Status); /*************************************************************************/