UBIFS: switch to dynamic printks
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 17 May 2011 12:15:30 +0000 (15:15 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 23 May 2011 05:22:20 +0000 (08:22 +0300)
commitdee87f8fc5116ea85d735696c88b0002dea87c53
treeffed000ab5bb33d482878bd72420474bdab1eec4
parent4304351ad9cfa26a2a38a33584d53a0b5cdb5fa6
UBIFS: switch to dynamic printks

Switch to debugging using dynamic printk (pr_debug()). There is no good reason
to carry custom debugging prints if there is so cool and powerful generic
dynamic printk infrastructure, see Documentation/dynamic-debug-howto.txt. With
dynamic printks we can switch on/of individual prints, per-file, per-function
and per format messages. This means that instead of doing old-fashioned

echo 1 > /sys/module/ubifs/parameters/debug_msgs

to enable general messages, we can do:

echo 'format "UBIFS DBG gen" +ptlf' > control

to enable general messages and additionally ask the dynamic printk
infrastructure to print process ID, line number and function name. So there is
no reason to keep UBIFS-specific crud if there is more powerful generic thing.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Documentation/filesystems/ubifs.txt
fs/ubifs/debug.c
fs/ubifs/debug.h