From: RichardBarry Date: Thu, 28 May 2009 20:35:28 +0000 (+0000) Subject: Just remove compiler warnings. X-Git-Tag: V5.3.0~27 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=208525c7ed8624d2da613fd90bddac7ec099209b;p=freertos Just remove compiler warnings. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@739 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/tasks.c b/Source/tasks.c index 34ed8f5c0..64417e11a 100644 --- a/Source/tasks.c +++ b/Source/tasks.c @@ -1977,13 +1977,13 @@ tskTCB *pxNewTCB; if( ulStatsAsPercentage > 0UL ) { - sprintf( pcStatsString, ( portCHAR * ) "%s\t\t%u\t\t%u%%\r\n", pxNextTCB->pcTaskName, pxNextTCB->ulRunTimeCounter, ulStatsAsPercentage ); + sprintf( pcStatsString, ( portCHAR * ) "%s\t\t%u\t\t%u%%\r\n", pxNextTCB->pcTaskName, ( unsigned int ) pxNextTCB->ulRunTimeCounter, ( unsigned int ) ulStatsAsPercentage ); } else { /* If the percentage is zero here then the task has - consumed less than 1% of the total run time. */ - sprintf( pcStatsString, ( portCHAR * ) "%s\t\t%u\t\t<1%%\r\n", pxNextTCB->pcTaskName, pxNextTCB->ulRunTimeCounter ); + consumed less than 1% of the total run time. */ + sprintf( pcStatsString, ( portCHAR * ) "%s\t\t%u\t\t<1%%\r\n", pxNextTCB->pcTaskName, ( unsigned int ) pxNextTCB->ulRunTimeCounter ); } }