FMDEBUG Reference
FMDEBUG provides debug functions to FM writers. Debug information is available via the hsmtrace utility on the host.
On Linux, these debug messages are also written to /var/log/messages
Historically, debug logging has been via a simulated serial port 0. This is maintained for backwards compatibility. In SafeNet ProtectToolkit 5 support was added for standard C printf to write to the hsmtrace log. This is the recommended method.
NOTE These functions and macros are supported under the FM emulation build as well. In this case the printing is done to stdout instead of the serial port.