From 5352f6d806573bc529653e8c5d019db32fcb6e1f Mon Sep 17 00:00:00 2001 From: Dan Knutsen Date: Wed, 8 Jan 2020 14:58:02 -0500 Subject: [PATCH] Fix #315, ES Performance debug messages --- fsw/cfe-core/src/es/cfe_es_perf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fsw/cfe-core/src/es/cfe_es_perf.c b/fsw/cfe-core/src/es/cfe_es_perf.c index 0fb45266a..e323f89e1 100644 --- a/fsw/cfe-core/src/es/cfe_es_perf.c +++ b/fsw/cfe-core/src/es/cfe_es_perf.c @@ -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++; @@ -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++; }