Skip to content

Commit

Permalink
Fix #315, ES Performance debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dmknutsen committed Jan 8, 2020
1 parent 2b27dfc commit 5352f6d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fsw/cfe-core/src/es/cfe_es_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,13 @@ int32 CFE_ES_SetPerfFilterMaskCmd(const CFE_ES_SetPerfFilterMask_t *data)

CFE_EVS_SendEvent(CFE_ES_PERF_FILTMSKCMD_EID, CFE_EVS_EventType_DEBUG,
"Set Performance Filter Mask Cmd rcvd, num %d, val 0x%x",
(int)cmd->FilterMaskNum,(unsigned int)cmd->FilterMaskNum);
(unsigned int)cmd->FilterMaskNum,(unsigned int)cmd->FilterMask);

CFE_ES_TaskData.CommandCounter++;
}else{
CFE_EVS_SendEvent(CFE_ES_PERF_FILTMSKERR_EID, CFE_EVS_EventType_ERROR,
"Performance Filter Mask Cmd Error,Index(%d)out of range(%d)",
(int)cmd->FilterMaskNum,(int)CFE_ES_PERF_32BIT_WORDS_IN_MASK);
(unsigned int)cmd->FilterMaskNum,(unsigned int)CFE_ES_PERF_32BIT_WORDS_IN_MASK);

CFE_ES_TaskData.CommandErrorCounter++;

Expand All @@ -373,14 +373,14 @@ int32 CFE_ES_SetPerfTriggerMaskCmd(const CFE_ES_SetPerfTriggerMask_t *data)

CFE_EVS_SendEvent(CFE_ES_PERF_TRIGMSKCMD_EID, CFE_EVS_EventType_DEBUG,
"Set Performance Trigger Mask Cmd rcvd,num %d, val 0x%x",
(int)cmd->TriggerMaskNum,(int)cmd->TriggerMaskNum);
(unsigned int)cmd->TriggerMaskNum,(unsigned int)cmd->TriggerMask);

CFE_ES_TaskData.CommandCounter++;

}else{
CFE_EVS_SendEvent(CFE_ES_PERF_TRIGMSKERR_EID, CFE_EVS_EventType_ERROR,
"Performance Trigger Mask Cmd Error,Index(%d)out of range(%d)",
(int)cmd->TriggerMaskNum,(int)CFE_ES_PERF_32BIT_WORDS_IN_MASK);
(unsigned int)cmd->TriggerMaskNum,(unsigned int)CFE_ES_PERF_32BIT_WORDS_IN_MASK);

CFE_ES_TaskData.CommandErrorCounter++;
}
Expand Down

0 comments on commit 5352f6d

Please sign in to comment.