I started porting over my mbed-os-5.15 project to mbed-os-6, and my printf statements started not to work as intended.
I see that mbed-os-6 switched to using their minimal-printf lib by default, and switching back to std fixes things for me.
However I would prefer the ROM savings with minimal-printf.
This brings me to my issue, a simple printf statement such as this:
sprintf(str, "Op: %04x", _op);
is no longer padding the hexadecimal value with zero’s as it does with the std printf lib.
I get something like this:
rather than this:
Poking through the source code, it doesn’t appear like this feature is part of the config, and is global behavior for the library.
Any help would be appreciated to get this set up!