Skip to content

Commit

Permalink
Fix #2623, Clean up command and event string typos
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Dec 31, 2024
1 parent d6e6107 commit 9366bc7
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 68 deletions.
12 changes: 6 additions & 6 deletions modules/core_api/fsw/inc/cfe_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
/**
* @brief Obtain an integer value correlating to an CFE configuration ID
*
* Retreives the integer value associated with the specified key.
* Retrieves the integer value associated with the specified key.
*
* If no value has been set, or the key is not valid, this returns 0.
*
Expand All @@ -56,7 +56,7 @@ uint32 CFE_Config_GetValue(CFE_ConfigId_t ConfigId);
/**
* @brief Obtain a pointer value correlating to an CFE configuration ID
*
* Retreives the pointer value associated with the specified key.
* Retrieves the pointer value associated with the specified key.
*
* If no value has been set, or the key is not valid, this returns NULL.
*
Expand All @@ -70,7 +70,7 @@ const void *CFE_Config_GetObjPointer(CFE_ConfigId_t ConfigId);
/**
* @brief Obtain an array correlating to an CFE configuration ID
*
* Retreives the CFE_Config_ArrayValue_t value associated with the specified key.
* Retrieves the CFE_Config_ArrayValue_t value associated with the specified key.
* This combines an array length (number of elements) and a pointer to the first element.
*
* If no value has been set, or the key is not valid, this returns 0 / NULL.
Expand All @@ -85,7 +85,7 @@ CFE_Config_ArrayValue_t CFE_Config_GetArrayValue(CFE_ConfigId_t ConfigId);
/**
* @brief Obtain a string value correlating to an CFE configuration ID
*
* Retreives the string value associated with the specified key.
* Retrieves the string value associated with the specified key.
*
* If no value has been set, or the key is not valid, this returns the
* special string "UNDEFINED"
Expand All @@ -102,7 +102,7 @@ const char *CFE_Config_GetString(CFE_ConfigId_t ConfigId);
/**
* @brief Obtain the name of a CFE configuration ID
*
* Retreives the printable name associated with the specified key.
* Retrieves the printable name associated with the specified key.
*
* @note This function does not return NULL.
*
Expand Down Expand Up @@ -144,7 +144,7 @@ void CFE_Config_IterateAll(void *Arg, CFE_Config_Callback_t Callback);
* with standard version string containing the provided
parameters (i.e.:
* "cFE DEVELOPMENT BUILD equuleus-rc1+dev0 (Codename
equueleus), Last Official Release: cFE 6.7.0"
equuleus), Last Official Release: cFE 6.7.0"
* @param[in] Size Size of the provided buffer
* @param[in] Component Component for which to get version string
* (i.e. "cFE")
Expand Down
6 changes: 3 additions & 3 deletions modules/es/fsw/src/cfe_es_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ void CFE_ES_ExitApp(uint32 ExitStatus)
}
}

} /* end if ReturnCode == CFE_SUCCESS */
}

CFE_ES_UnlockSharedData(__func__, __LINE__);
}
Expand Down Expand Up @@ -543,7 +543,7 @@ bool CFE_ES_RunLoop(uint32 *RunStatus)
CFE_ES_SysLogWrite_Unsync("%s: Error getting AppID for the caller\n", __func__);
ReturnCode = false;

} /* end if Status == CFE_SUCCESS */
}

CFE_ES_UnlockSharedData(__func__, __LINE__);

Expand Down Expand Up @@ -1640,7 +1640,7 @@ CFE_Status_t CFE_ES_RegisterCDS(CFE_ES_CDSHandle_t *CDSHandlePtr, size_t BlockSi

strncpy(CDSName, Name, sizeof(CDSName) - 1);
CDSName[sizeof(CDSName) - 1] = '\0';
CFE_ES_WriteToSysLog("%s: CDS Name (%s) is too long\n", __func__, CDSName);
CFE_ES_WriteToSysLog("%s: CDS Name (%s) is either too long, or an empty string\n", __func__, CDSName);
}
else
{
Expand Down
52 changes: 0 additions & 52 deletions modules/es/fsw/src/cfe_es_cds.h
Original file line number Diff line number Diff line change
Expand Up @@ -472,22 +472,6 @@ int32 CFE_ES_CDS_EarlyInit(void);
******************************************************************************/
int32 CFE_ES_ValidateCDS(void);

/*---------------------------------------------------------------------------------------*/
/**
** \brief Initializes the CDS Registry
**
** \par Description
** Initializes the data structure used to keep track of CDS blocks and
** who they belong to.
**
** \par Assumptions, External Events, and Notes:
** None
**
** \retval #CFE_SUCCESS \copydoc CFE_SUCCESS
**
******************************************************************************/
int32 CFE_ES_InitCDSRegistry(void);

/*---------------------------------------------------------------------------------------*/
/**
** \brief Rebuilds memory pool for CDS and recovers existing registry
Expand Down Expand Up @@ -597,23 +581,6 @@ int32 CFE_ES_LockCDS(void);
******************************************************************************/
int32 CFE_ES_UnlockCDS(void);

/*---------------------------------------------------------------------------------------*/
/**
** \brief Rebuilds memory pool for CDS and recovers existing registry
**
** \par Description
** Scans memory for existing CDS and initializes memory pool and registry
** settings accordingly
**
** \par Assumptions, External Events, and Notes:
** -# Assumes the validity of the CDS has already been determined
**
** \return #CFE_SUCCESS \copydoc CFE_SUCCESS
** \return Any of the return values from #CFE_PSP_ReadFromCDS
**
******************************************************************************/
int32 CFE_ES_RebuildCDS(void);

/*---------------------------------------------------------------------------------------*/
/**
** \brief Initializes the CDS Registry
Expand All @@ -630,25 +597,6 @@ int32 CFE_ES_RebuildCDS(void);
******************************************************************************/
int32 CFE_ES_InitCDSRegistry(void);

/*---------------------------------------------------------------------------------------*/
/**
** \brief Determines whether a CDS currently exists
**
** \par Description
** Reads a set of bytes from the beginning and end of the CDS memory
** area and determines if a fixed pattern is present, thus determining
** whether the CDS still likely contains valid data or not.
**
** \par Assumptions, External Events, and Notes:
** None
**
** \return #CFE_SUCCESS \copydoc CFE_SUCCESS
** \return #CFE_ES_CDS_INVALID \copydoc CFE_ES_CDS_INVALID
** \return Any of the return values from #CFE_PSP_ReadFromCDS
**
******************************************************************************/
int32 CFE_ES_ValidateCDS(void);

/*---------------------------------------------------------------------------------------*/
/**
** \brief Clears the contents of the CDS
Expand Down
4 changes: 2 additions & 2 deletions modules/evs/config/default_cfe_evs_fcncodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
** - \b \c \EVS_CMDPC - command execution counter will
** increment
** - The generation of #CFE_EVS_DISAPPENTTYPE_EID debug event message
** - The clearing of the Event Type Active Flag in The Event Type Active Flag in EVS App Data File
** - The clearing of the Event Type Active Flag in EVS App Data File
**
** \par Error Conditions
** This command may fail for the following reason(s):
Expand Down Expand Up @@ -370,7 +370,7 @@
** - \b \c \EVS_CMDPC - command execution counter will
** increment
** - The generation of #CFE_EVS_ENAAPPEVT_EID debug event message
** - The setting of the Active Flag in The Active Flag in EVS App Data File
** - The setting of the Active Flag in EVS App Data File
**
** \par Error Conditions
** This command may fail for the following reason(s):
Expand Down
6 changes: 3 additions & 3 deletions modules/evs/eds/cfe_evs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<EnumerationList>
<Enumeration label="DEBUG" value="1" shortDescription="Events that are intended only for debugging, not nominal operations" />
<Enumeration label="INFORMATION" value="2" shortDescription="Events that identify a state change or action that is not an error" />
<Enumeration label="ERROR" value="3" shortDescription="Events that identify an error but are not catastrophic (e.g. - bad command" />
<Enumeration label="ERROR" value="3" shortDescription="Events that identify an error but are not catastrophic (e.g. - bad command)" />
<Enumeration label="CRITICAL" value="4" shortDescription="Events that identify errors that are unrecoverable autonomously" />
</EnumerationList>
</EnumeratedDataType>
Expand Down Expand Up @@ -846,8 +846,8 @@
- \b \c \EVS_CMDEC - command error counter will increment
- An Error specific event message

\par Criticality
Setting an application¿s event filter mask is not particularly hazardous,
\par Criticality
Setting an application's event filter mask is not particularly hazardous,
as the result may be shutting off unnecessary event messages and possible
event flooding of the system. However, inappropriately setting an
application's event filter mask could result in a loss of critical
Expand Down
2 changes: 1 addition & 1 deletion modules/evs/fsw/inc/cfe_evs_eventids.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
*
* \par Cause:
*
* \link #CFE_EVS_RESET_ALL_FILTERS_CC EVS Reset All FIlters Command \endlink success.
* \link #CFE_EVS_RESET_ALL_FILTERS_CC EVS Reset All Filters Command \endlink success.
*/
#define CFE_EVS_RSTALLFILTER_EID 29

Expand Down
2 changes: 1 addition & 1 deletion modules/sb/fsw/src/cfe_sb_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ CFE_Status_t CFE_SB_GetPipeOpts(CFE_SB_PipeId_t PipeId, uint8 *OptsPtr)
break;
case CFE_SB_GETPIPEOPTS_ID_ERR_EID:
CFE_EVS_SendEventWithAppID(CFE_SB_GETPIPEOPTS_ID_ERR_EID, CFE_EVS_EventType_ERROR, CFE_SB_Global.AppId,
"Pipe Opts Error:Bad Argument,PipedId %lu,Requestor %s",
"Pipe Opts Error:Bad Argument,PipeId %lu,Requestor %s",
CFE_RESOURCEID_TO_ULONG(PipeId), CFE_SB_GetAppTskName(TskId, FullName));
break;
default:
Expand Down

0 comments on commit 9366bc7

Please sign in to comment.