Solved
can't get standard c-function/macro (va_list, va_start, va_end) to work properly. compiler bug?
Hello,
The following code compiles, but doesn't give the me results I'm expecting:
void syslog2(uint8_t pri, const char *fmt, ...) {
va_list args;
va_start(args, fmt);
printf(fmt, args);
va_end(args);
}
main() {
printf("%s\r\n", _tx_version_id);
syslog2(SYSLOG_INFO, "Azure RTOS - %s\r\n", "test" /*_tx_version_id*/);
}
this is the output:
![]()
what am I missing?
thanks
Matthew
