Skip to content

Commit

Permalink
Merge pull request #1739 from pepepr08/fix1738-add-cast
Browse files Browse the repository at this point in the history
Fix #1738 Add cast to MIR prints
  • Loading branch information
astrogeco authored Aug 2, 2021
2 parents cc8c9a1 + 7143a6b commit c4ae5b2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions modules/time/ut-coverage/time_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 */
Expand All @@ -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 */
Expand All @@ -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);
}
}

Expand Down

0 comments on commit c4ae5b2

Please sign in to comment.