UBI: improve checking in debugging prints
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 17 May 2011 09:50:08 +0000 (12:50 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 20 May 2011 05:30:34 +0000 (08:30 +0300)
commit3802243a189b0f153acb03f531daf35d40bc38bb
tree073eb1a7fcc3304ab048eb540d87565feadc0bfb
parent1426414431a8d37a6e631e0b5e2ad6186b81876a
UBI: improve checking in debugging prints

When debugging is disabled, define debugging prints as if (0) printk() to make
sure that the compiler still the format string in debugging messages even if
debugging is disabled.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/debug.h