From 7143a6b51aa89edade041c563529e189ae707ad9 Mon Sep 17 00:00:00 2001 From: "Jose F. Martinez Pedraza" Date: Fri, 30 Jul 2021 11:05:51 -0400 Subject: [PATCH] Fix #1738 Add cast to MIR prints --- modules/time/ut-coverage/time_UT.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/time/ut-coverage/time_UT.c b/modules/time/ut-coverage/time_UT.c index fd8bea75d..b83de9ec7 100644 --- a/modules/time/ut-coverage/time_UT.c +++ b/modules/time/ut-coverage/time_UT.c @@ -849,8 +849,8 @@ void Test_Print(void) else { UtAssertEx(false, UTASSERT_CASETYPE_MIR, __FILE__, __LINE__, - "Confirm adding seconds = %u, subseconds = %u to configured EPOCH results in time %s", time.Seconds, - time.Subseconds, timeBuf); + "Confirm adding seconds = %u, subseconds = %u to configured EPOCH results in time %s", + (unsigned int)time.Seconds, (unsigned int)time.Subseconds, timeBuf); } /* Test with a time value that causes seconds >= 60 when @@ -868,8 +868,8 @@ void Test_Print(void) else { UtAssertEx(false, UTASSERT_CASETYPE_MIR, __FILE__, __LINE__, - "Confirm adding seconds = %u, subseconds = %u to configured EPOCH results in time %s", time.Seconds, - time.Subseconds, timeBuf); + "Confirm adding seconds = %u, subseconds = %u to configured EPOCH results in time %s", + (unsigned int)time.Seconds, (unsigned int)time.Subseconds, timeBuf); } /* Test with mission representative time values */ @@ -885,8 +885,8 @@ void Test_Print(void) else { UtAssertEx(false, UTASSERT_CASETYPE_MIR, __FILE__, __LINE__, - "Confirm adding seconds = %u, subseconds = %u to configured EPOCH results in time %s", time.Seconds, - time.Subseconds, timeBuf); + "Confirm adding seconds = %u, subseconds = %u to configured EPOCH results in time %s", + (unsigned int)time.Seconds, (unsigned int)time.Subseconds, timeBuf); } /* Test with maximum seconds and subseconds values */ @@ -902,8 +902,8 @@ void Test_Print(void) else { UtAssertEx(false, UTASSERT_CASETYPE_MIR, __FILE__, __LINE__, - "Confirm adding seconds = %u, subseconds = %u to configured EPOCH results in time %s", time.Seconds, - time.Subseconds, timeBuf); + "Confirm adding seconds = %u, subseconds = %u to configured EPOCH results in time %s", + (unsigned int)time.Seconds, (unsigned int)time.Subseconds, timeBuf); } }