Skip to content

Commit a93304e

Browse files
authored
Merge pull request #1524 from jphickey/fix-1522-rtems-format
Fix #1522, add printf format casts
2 parents 8443a46 + 512958e commit a93304e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

modules/cfe_testcase/src/es_task_test.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ void TestCreateChild(void)
8686

8787
OS_TaskDelay(500);
8888

89-
UtAssert_True(countCopy == count || countCopy == count + 1, "countCopy (%d) == count (%d)", countCopy, count);
89+
UtAssert_True(countCopy == count || countCopy == count + 1, "countCopy (%d) == count (%d)", (int)countCopy,
90+
(int)count);
9091
}
9192

9293
void TestExitChild(void)

modules/cfe_testcase/src/time_current_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ void TestGetTime(void)
8686
OS_GetLocalTime(&end);
8787

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

9191
difference = OS_TimeSubtract(end, start);
9292

0 commit comments

Comments
 (0)