diff --git a/fsw/src/hs_app.c b/fsw/src/hs_app.c index 3b1e97e..da59f0c 100644 --- a/fsw/src/hs_app.c +++ b/fsw/src/hs_app.c @@ -323,7 +323,7 @@ CFE_Status_t HS_AppInit(void) if (Status != CFE_SUCCESS) { CFE_EVS_SendEvent(HS_SYSMON_INIT_ERR_EID, CFE_EVS_EventType_ERROR, - "Error in system monitor initialization, RC=0x%08X", Status); + "Error in system monitor initialization, RC=0x%08X", (unsigned int)Status); return Status; } diff --git a/fsw/src/hs_cmds.c b/fsw/src/hs_cmds.c index 623f03c..ceee741 100644 --- a/fsw/src/hs_cmds.c +++ b/fsw/src/hs_cmds.c @@ -171,7 +171,7 @@ CFE_Status_t HS_SendHkCmd(const HS_SendHkCmd_t *BufPtr) /* ExeCount remains HS_INVALID_EXECOUNT */ CFE_EVS_SendEvent(HS_HKREQ_RESOURCE_DBG_EID, CFE_EVS_EventType_DEBUG, "Housekeeping req found unknown resource. Type=0x%08X", - HS_AppData.XCTablePtr[TableIndex].ResourceType); + (unsigned int)HS_AppData.XCTablePtr[TableIndex].ResourceType); break; } /* end ResourceType switch statement */ } /* end ExeCountState if statement */ diff --git a/unit-test/hs_monitors_tests.c b/unit-test/hs_monitors_tests.c index b426dff..62930d2 100644 --- a/unit-test/hs_monitors_tests.c +++ b/unit-test/hs_monitors_tests.c @@ -198,7 +198,7 @@ void HS_MonitorApplications_Test_ProcessorResetError(void) /* Verify results */ UtAssert_True(HS_AppData.AppMonCheckInCountdown[0] == 0, "HS_AppData.AppMonCheckInCountdown[0] == 0 %u", HS_AppData.AppMonCheckInCountdown[0]); - UtAssert_True(HS_AppData.AppMonEnables[0] == 0, "HS_AppData.AppMonEnables[0] == 0 %u", HS_AppData.AppMonEnables[0]); + UtAssert_UINT32_EQ(HS_AppData.AppMonEnables[0], 0); UtAssert_True(HS_AppData.ServiceWatchdogFlag == HS_STATE_DISABLED, "HS_AppData.ServiceWatchdogFlag == HS_STATE_DISABLED"); @@ -1690,9 +1690,7 @@ void HS_MonitorUtilization_Test_HighCurrentUtil(void) HS_MonitorUtilization(); /* Verify results */ - UtAssert_True(HS_AppData.UtilizationTracker[HS_AppData.CurrentCPUUtilIndex - 1] == HS_CPU_UTILIZATION_MAX, - "HS_AppData.UtilizationTracker[HS_AppData.CurrentCPUUtilIndex - 1] == HS_CPU_UTILIZATION_MAX %u %u", - HS_AppData.UtilizationTracker[HS_AppData.CurrentCPUUtilIndex - 1], HS_CPU_UTILIZATION_MAX); + UtAssert_INT32_EQ(HS_AppData.UtilizationTracker[HS_AppData.CurrentCPUUtilIndex - 1], HS_CPU_UTILIZATION_MAX); /* For this test case, we don't care about any messages or variables changed after this is set */ call_count_CFE_EVS_SendEvent = UT_GetStubCount(UT_KEY(CFE_EVS_SendEvent));