Closed phillipjohnston closed 2 years ago
Your last commit may perhaps be obviated by -fno-builtin-printf
. See discussion at eyalroz/printf#76 .
The problem here is that it's an arduino library, so I don't have a good way about enforcing build flags. For that approach (which I favor), I need EVERYONE to adjust their local rules for the AVR cores or whatever other architectures to apply that flag.
In that case - won't you also need to define a putchar()
, avoiding replacements of printf("%c", ch)
with putchar(ch)
?
Yes, certainly right.
Probably means I should just handle it via #27 (changing the macro approach)
Yeah, redefining puts works fine, but putchar just opens a new can of worms of unwanted compiler optimizations.
Cannot merge yet - printf("string with no args") is not functional