# Calling Printf() in task

**URL:** <https://forums.freertos.org/t/calling-printf-in-task/6936>\
**Category:** Kernel\
**Created:** [January 16, 2018, 12:01pm UTC](https://forums.freertos.org/t/calling-printf-in-task/6936 "2018-01-16T12:01:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [January 16, 2018, 12:01pm UTC](https://forums.freertos.org/t/calling-printf-in-task/6936/1 "2018-01-16T12:01:10Z")

</div>

**[michaeln32](https://sourceforge.net/u/michaeln32/)** wrote on [Tuesday, January 16, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/79fa3e9c/#7366):

Hi,  
I’m using Printf() task.

Is calling printf() in task can destroy the functionality of the API prvTaskCheckFreeStackSpace() ?

---

<div class="post-metadata">

**Author:** ![richard-damon](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/richard-damon/32/38_2.png) [@richard-damon](https://forums.freertos.org/u/richard-damon)\
**Post date:** [January 16, 2018, 12:07pm UTC](https://forums.freertos.org/t/calling-printf-in-task/6936/2 "2018-01-16T12:07:04Z")

</div>

**[richard\_damon](https://sourceforge.net/u/richard_damon/)** wrote on [Tuesday, January 16, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/79fa3e9c/#4682):

printf won’t break stack checking, but printf can use a lot of stack, so it is easy for it to overflow the stack if you don’t allocate enough.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [January 16, 2018, 12:36pm UTC](https://forums.freertos.org/t/calling-printf-in-task/6936/3 "2018-01-16T12:36:08Z")

</div>

**[michaeln32](https://sourceforge.net/u/michaeln32/)** wrote on [Tuesday, January 16, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/79fa3e9c/#77cb):

Ok Richard.

Thank you !
