From: richardbarry Date: Sun, 17 Feb 2008 18:24:50 +0000 (+0000) Subject: Automatically adjust trace buffer size using sizeof(). X-Git-Tag: V4.7.2~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0009e00a18ac1073c618918160b18555fd6dc965;p=freertos Automatically adjust trace buffer size using sizeof(). git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@201 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/MB91460_Softune/SRC/utility/taskutility.c b/Demo/MB91460_Softune/SRC/utility/taskutility.c index 3a756ca36..6670a1f76 100644 --- a/Demo/MB91460_Softune/SRC/utility/taskutility.c +++ b/Demo/MB91460_Softune/SRC/utility/taskutility.c @@ -172,7 +172,7 @@ static void vUART5Task( void *pvParameters ) break; case '2': - vTaskStartTrace( (signed char *) buff, 512 ); + vTaskStartTrace( (signed char *) buff, sizeof( buff ) ); Puts5( "\n\rThe trace started!!" ); vTaskDelay( (portTickType) 450 ); trace_len = ulTaskEndTrace();