Please find attached the third version of the DEBUG macro refactoring
patchset. The second version was lost to the maillist message size limit, so
I'll list the changes from the first one:
* level limiting condition moved to the macro as requested by Simo,
* macro definition update is separated from the invocation update,
* automatic macro invocation update is separated from the following manual
* invocations using the old debug level (number literals) are updated to
use the new bitmask macros,
* the level conversion function "debug_get_level" is removed.
Please feel free to pick and squash commits as necessary.