Skip to content

Commit

Permalink
Merge pull request #1524 from jphickey/fix-1522-rtems-format
Browse files Browse the repository at this point in the history
Fix #1522, add printf format casts
  • Loading branch information
astrogeco authored May 24, 2021
2 parents 8443a46 + 512958e commit a93304e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/cfe_testcase/src/es_task_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ void TestCreateChild(void)

OS_TaskDelay(500);

UtAssert_True(countCopy == count || countCopy == count + 1, "countCopy (%d) == count (%d)", countCopy, count);
UtAssert_True(countCopy == count || countCopy == count + 1, "countCopy (%d) == count (%d)", (int)countCopy,
(int)count);
}

void TestExitChild(void)
Expand Down
2 changes: 1 addition & 1 deletion modules/cfe_testcase/src/time_current_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void TestGetTime(void)
OS_GetLocalTime(&end);

CFE_TIME_Print(timeBuf1, Time);
UtPrintf("The current time is (%d) %s", Time.Seconds, timeBuf1);
UtPrintf("The current time is (%ld) %s", (long)Time.Seconds, timeBuf1);

difference = OS_TimeSubtract(end, start);

Expand Down

0 comments on commit a93304e

Please sign in to comment.