]> granicus.if.org Git - esp-idf/commitdiff
freertos: fix TLS delete callback test
authorIvan Grokhotkov <ivan@espressif.com>
Fri, 9 Dec 2016 11:44:27 +0000 (19:44 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Tue, 13 Dec 2016 05:24:01 +0000 (13:24 +0800)
“Full” printf uses more stack space than “nano” printf, and more space than available in the idle task.
This caused stack overflow in TLS delete test. Replacing printf with ets_printf.

components/freertos/test/test_tls_deletecb.c

index 5277b761ab96ec5502eb222cdcfd012c36fff7d1..8628f42ec936330f7fbfefcae66f36f967e14a7a 100644 (file)
@@ -16,7 +16,7 @@
 
 static void tskdelcb(int no, void *arg)
 {
-    printf("Delete callback: %d = %p!\n", no,  arg);
+    ets_printf("Delete callback: %d = %p!\n", no,  arg);
 }