]> git.sur5r.net Git - freertos/commitdiff
Just remove compiler warnings.
authorRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 28 May 2009 20:35:28 +0000 (20:35 +0000)
committerRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 28 May 2009 20:35:28 +0000 (20:35 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@739 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/tasks.c

index 34ed8f5c0f0ae9c7796a7dc8e8daeb60b0deeaf6..64417e11af294981c6ac7741786980aa492958fe 100644 (file)
@@ -1977,13 +1977,13 @@ tskTCB *pxNewTCB;
 \r
                                        if( ulStatsAsPercentage > 0UL )\r
                                        {\r
-                                               sprintf( pcStatsString, ( portCHAR * ) "%s\t\t%u\t\t%u%%\r\n", pxNextTCB->pcTaskName, pxNextTCB->ulRunTimeCounter, ulStatsAsPercentage );\r
+                                               sprintf( pcStatsString, ( portCHAR * ) "%s\t\t%u\t\t%u%%\r\n", pxNextTCB->pcTaskName, ( unsigned int ) pxNextTCB->ulRunTimeCounter, ( unsigned int ) ulStatsAsPercentage );\r
                                        }\r
                                        else\r
                                        {\r
                                                /* If the percentage is zero here then the task has\r
-                                               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 );\r
+                                               consumed less than 1% of the total run time. */\r
+                                               sprintf( pcStatsString, ( portCHAR * ) "%s\t\t%u\t\t<1%%\r\n", pxNextTCB->pcTaskName, ( unsigned int ) pxNextTCB->ulRunTimeCounter );\r
                                        }\r
                                }\r
 \r