Hello everyone,
(target C6678, CCS 5.5, BIOS 1.25, XDCTools 3.25, Syst Analyser 1.3)
The aim here is to write a printf wrapper (we'd call it UserPrintf) which supports variable arguments and use Log_print behind the scenes.
Log_print supports up to 6 IArg arguments so my idea is to use a sprintf-like before and feed the log_print with only 1 string.
here's what I've got so far :
void UserPrintf( CString fmt, ... )
{
VaList va;
Char buf[200];
va_start(va, fmt);
System_vsprintf(buf, fmt, va);
va_end(va);
Log_print0(Diags_USER6, buf);
}
UserPrintf("example %d",123);
but it doesn't seem to work
In System Analyser I see the log_print Events but the actual Message is "Timeout annot be zero". instead of "example 123"
(System proxy = SysMin) in ROV tool the output buffer of SysMin shows "example 123".
With SysStd in the Logs the Message is empty (why?). Nothing is displayed on the console (as expected).
Do you see what's wrong ?
Thank you,
Clement

