On Thu, 2013-10-10 at 16:25 -0400, Simo Sorce wrote:
The code size reduction looks appealing, however please check the level before calling the function, directly in the DEBUG() macro. This way we completely avoid the function call when we are not going to debug anything.
We could even go as far as wrapping the level test into unlikely() so that the compiler can help branch prediction by not calling the function by default.
Simo.