Wow! I found that within the SDK's file, there's this:
This appears to me that the function is already wrapped!
In fact, when compiling I see this:
So... looks like this is the right direction, but I don't know how to "not wrap" the default, or to "re-wrap" the default.
I'll keep checking...
Code:
stdio.c
Code:
int __printflike(1, 0) WRAPPER_FUNC(printf)(const char* format, ...){ va_list va; va_start(va, format); int ret = vprintf(format, va); va_end(va); return ret;}
Code:
printf(...)
In fact, when compiling I see this:
Code:
pico-sdk/src/rp2_common/pico_stdio/stdio.c:275: multiple definition of `__wrap_printf';
I'll keep checking...
Statistics: Posted by shreeve — Tue Mar 05, 2024 2:02 am