2.3. Are we debugging?

To test whether the debugging channel xxx is enabled, use the TRACE_ON, WARN_ON, FIXME_ON, or ERR_ON macros. For example:

You should normally need to test only if TRACE_ON, all the others are very seldom used. With careful coding, you can avoid the use of these macros, which is generally desired.