Home >

FM SDK Programming Guide > FMDEBUG Reference

  
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.

Function Descriptions

This section contains the following function descriptions:

debug (macro)

printf/vprintf

DBG_INIT

DBG

DBG_PRINT

DBG_STR

DUMP

DBG_FINAL