To test whether the debugging channel xxx is enabled, use the TRACE_ON, WARN_ON, FIXME_ON, or ERR_ON macros. For example:
if(TRACE_ON(atom)){
...blah...
}
You should normally need to test only if TRACE_ON,
all the others are very seldomly used. With careful coding, you
can avoid the use of these macros, which is generally desired.