]> git.sur5r.net Git - freertos/commitdiff
Automatically adjust trace buffer size using sizeof().
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 17 Feb 2008 18:24:50 +0000 (18:24 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 17 Feb 2008 18:24:50 +0000 (18:24 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@201 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/MB91460_Softune/SRC/utility/taskutility.c

index 3a756ca360c47695b1e533efa145c21dc45fd651..6670a1f763d87cda0862b63b453734e0f6a0466c 100644 (file)
@@ -172,7 +172,7 @@ static void vUART5Task( void *pvParameters )
                                break;\r
 \r
                        case '2':\r
-                               vTaskStartTrace( (signed char *) buff, 512 );\r
+                               vTaskStartTrace( (signed char *) buff, sizeof( buff ) );\r
                                Puts5( "\n\rThe trace started!!" );\r
                                vTaskDelay( (portTickType) 450 );\r
                                trace_len = ulTaskEndTrace();\r