summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2017-04-10 01:58:58 +0000
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2017-04-10 01:58:58 +0000
commite4310e606a1494c5368a64fb045f03a78f0f0a7b (patch)
treede43d3771b574a27304e9f9aa98bfe41c3240b21
parent4770c8551244e937cb70a14d87341449f472ca7c (diff)
downloadfreertos-e4310e606a1494c5368a64fb045f03a78f0f0a7b.tar.gz
Added traceQUEUE_CREATE_FAILED() trace macros into the queue create functions.
git-svn-id: http://svn.code.sf.net/p/freertos/code/trunk@2501 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
-rw-r--r--FreeRTOS/Source/queue.c8
1 files changed, 8 insertions, 0 deletions
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;
}