According to the documentation:
Yaffs has many built-in traces that help debug and integrate. tracing is controlled by the yaffs_traceMask bitmask, which allows for various trace sets that must be disabled or enabled at run time.
Trace bits are specified in the yaffs_trace.h file.
The trace mechanism was also captured to provide mask control for additional verification code when the trace is YAFFS_TRACE_VERIFYxxx bit.
The trace mechanism is easily integrated into the system through printf-like statements. Tracing is done through macros that allow strings to be converted to unicode or similar, if necessary.
It can be manipulated at run time through the proc or sysfs interface, for example:
cat +os > /proc/yaffs
For more details see: http://www.yaffs.net/yaffs-tuning-and-configuration#Tracing_mechanism
source share