This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
This is a total mystery to me. My code was working previously. I made some minor unrelated changes then put it on the shelf for a while. Now the vsnprintf doesn't handle extra formatting. I cant figure out what I would have done.
vsnprintf doesn't respect "%08x" (for leading zeros), but it does "%x". It just outputs "8x" instead of replacing the format specifier with the argument.
vsnprintf also doesn't handle "%u"
Any idea what could be causing that? This code was previously working, so its not a problem with my immediate code. Maybe some configuration or system code?
Also, the same format specifiers work fine when using System_printf.
spanky said:Does vsnprintf (and its siblings) use a different codebase from System_printf?
Yes. -George
The System_xxprintf functions don't support the full range of format strings. E.g. see CCS: How to print unsigned long long (uint64_t ) using System_printf() and System_flush()spanky said:So if there are System_xxprintf functions in the XDC tools, and another completely independent xxprintf implementation in the standard libraries, which one should I use?