Skip to content

Commit

Permalink
Fix nasa#315, ES Performance debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dmknutsen committed Jan 31, 2020
1 parent 3356da6 commit d2c4477
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions fsw/cfe-core/src/es/cfe_es_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,14 +342,14 @@ int32 CFE_ES_SetPerfFilterMaskCmd(const CFE_ES_SetPerfFilterMask_t *data)
Perf->MetaData.FilterMask[cmd->FilterMaskNum] = cmd->FilterMask;

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);
"Set Performance Filter Mask Cmd rcvd, num %u, val 0x%x",
(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);
"Performance Filter Mask Cmd Error,Index(%u)out of range(%u)",
(unsigned int)cmd->FilterMaskNum,(unsigned int)CFE_ES_PERF_32BIT_WORDS_IN_MASK);

CFE_ES_TaskData.CommandErrorCounter++;

Expand All @@ -372,15 +372,15 @@ int32 CFE_ES_SetPerfTriggerMaskCmd(const CFE_ES_SetPerfTriggerMask_t *data)
Perf->MetaData.TriggerMask[cmd->TriggerMaskNum] = cmd->TriggerMask;

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);
"Set Performance Trigger Mask Cmd rcvd,num %u, val 0x%x",
(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);
"Performance Trigger Mask Cmd Error,Index(%u)out of range(%u)",
(unsigned int)cmd->TriggerMaskNum,(unsigned int)CFE_ES_PERF_32BIT_WORDS_IN_MASK);

CFE_ES_TaskData.CommandErrorCounter++;
}
Expand Down

0 comments on commit d2c4477

Please sign in to comment.