Avoid redefining printf#1629
Conversation
|
Thanks for a reminder, I have opted for less invasive changes (1fc8918). |
|
I see. How do you expect users to get diagnostic output- do we have to re-implement the define inside the c file? |
|
I have simply replaced all ets_printf calls with printf, which works much the same way (both of them call ets_vprintf). As far as output goes, there should be no difference. Enabling debug macros defined in umm_malloc is up to the user, I suppose. |
|
Unfortunately, it does not link for me: |
|
Some sketches work, some fail with the undefined reference to `putchar'. A quick unscientific survey: Blink example works I suspect any sketch that invokes Serial.begin() will fail to link. Here is the simplest example that fails. Undo the patch and this links correctly. |
|
can confirm: |
Needed to avoid userland error when including
umm_malloc.hfor heap diagnosis.