Trace Configuration
The file system debug trace is enabled by #define‘ing FS_TRACE_LEVEL
in your application’s fs_cfg.h
:
#define FS_TRACE_LEVEL TRACE_LEVEL_DBG
The valid trace levels are described in the table below. A trace functions should also be defined:
#define FS_TRACE printf
This should be a printf-type function that redirects the trace output to some accessible terminal (for example, the terminal I/O window within your debugger, or a serial port) . When porting a driver to a new platform, this information can be used to debug the fledgling port.
Trace levels
Trace Level | Meaning |
---|---|
TRACE_LEVEL_OFF | No trace. |
TRACE_LEVEL_INFO | Basic event information (e.g., volume characteristics). |
TRACE_LEVEL_DBG | Debug information. |
TRACE_LEVEL_LOG | Event log. |