Accidental use of printf will use the Newlib implementation which uses heap, thus causing an error message about missing :platform:heap module. This is confusing and will lead to an unnecessary usage of the heap in addition to not getting any printf output.
This adds a dummy implementation of all printf methods and places them into a /DISCARD/ section just like the heap functions.
Accidental use of printf will use the Newlib implementation which uses heap, thus causing an error message about missing
:platform:heap
module. This is confusing and will lead to an unnecessary usage of the heap in addition to not getting any printf output.This adds a dummy implementation of all printf methods and places them into a
/DISCARD/
section just like the heap functions.