]> git.sur5r.net Git - freertos/commitdiff
Added traceQUEUE_CREATE_FAILED() trace macros into the queue create functions.
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 10 Apr 2017 01:58:58 +0000 (01:58 +0000)
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 10 Apr 2017 01:58:58 +0000 (01:58 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2501 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

FreeRTOS/Source/queue.c

index 72bdff50835e3df6a84009c4de409561ca8ea5d3..7c1baf255ed294979385a17fd750c598be11a0a6 100644 (file)
@@ -384,6 +384,10 @@ Queue_t * const pxQueue = ( Queue_t * ) xQueue;
 \r
                        prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );\r
                }\r
+               else\r
+               {\r
+                       traceQUEUE_CREATE_FAILED( ucQueueType );\r
+               }\r
 \r
                return pxNewQueue;\r
        }\r
@@ -432,6 +436,10 @@ Queue_t * const pxQueue = ( Queue_t * ) xQueue;
 \r
                        prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );\r
                }\r
+               else\r
+               {\r
+                       traceQUEUE_CREATE_FAILED( ucQueueType );\r
+               }\r
 \r
                return pxNewQueue;\r
        }\r