From: rtel Date: Mon, 10 Apr 2017 01:58:58 +0000 (+0000) Subject: Added traceQUEUE_CREATE_FAILED() trace macros into the queue create functions. X-Git-Tag: V10.0.0~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8526da855242336d5ce4db93208a156a9e014c87;p=freertos Added traceQUEUE_CREATE_FAILED() trace macros into the queue create functions. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2501 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/FreeRTOS/Source/queue.c b/FreeRTOS/Source/queue.c index 72bdff508..7c1baf255 100644 --- a/FreeRTOS/Source/queue.c +++ b/FreeRTOS/Source/queue.c @@ -384,6 +384,10 @@ Queue_t * const pxQueue = ( Queue_t * ) xQueue; prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue ); } + else + { + traceQUEUE_CREATE_FAILED( ucQueueType ); + } return pxNewQueue; } @@ -432,6 +436,10 @@ Queue_t * const pxQueue = ( Queue_t * ) xQueue; prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue ); } + else + { + traceQUEUE_CREATE_FAILED( ucQueueType ); + } return pxNewQueue; }