It depends on how the FreeRTOS_printf
is implemented in your application. Its advised not to call any FreeRTOS API’s while the scheduler is suspended - vTaskSuspendAll
If FreeRTOS_printf
is implemented to have FreeRTOS API calls, for example, sending the print text to a FreeRTOS queue that could block while the scheduler is suspended, then it can lead to undefined behaviors.
You can read a similar discussion here: Calling non-blocking FreeRTOS API functions while scheduler is suspended