It might be worth mentioning that systems that support the jump_label feature (x86, sparc, mips with GCC-4.5 or later), that the dynamic degugging makes use of dynamic code patching. The result is that for disabled printks, the overhead is quite low.