printf/vprintf

In addition to FMDEBUG logging, FM SDK 5.0 introduces support for the C standard printf() and vprintf() functions. These functions can be called at any time, with or without the debug library, and accept all standard C99 formating specifiers. 

In FMs, these functions do not print to stdout, but instead send log messages to the hsmtrace log. Since these are formatting messages for a log rather than stdout, there are two differences from the standard C implementations.

1.Each printf()/vprintf() call prefaces its output with a log header that includes the FM’s ID.

2.Each call to printf()/vprintf() has a new line appended to its output.

Should an FM developer require raw character logging as existed in PPO toolkits, the FMDEBUG and Serial Port 0 logging APIs may be used.