[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.2 / 0055-UBIFS-fix-debugging-messages.patch
1 From 1b3cf92e4f993769ceaf78263ccebc8eaf67a804 Mon Sep 17 00:00:00 2001
2 From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
3 Date: Tue, 10 Jan 2012 19:32:30 +0200
4 Subject: [PATCH 055/130] UBIFS: fix debugging messages
6 commit d34315da9146253351146140ea4b277193ee5e5f upstream.
8 Patch 56e46742e846e4de167dde0e1e1071ace1c882a5 broke UBIFS debugging messages:
9 before that commit when UBIFS debugging was enabled, users saw few useful
10 debugging messages after mount. However, that patch turned 'dbg_msg()' into
11 'pr_debug()', so to enable the debugging messages users have to enable them
12 first via /sys/kernel/debug/dynamic_debug/control, which is very impractical.
14 This commit makes 'dbg_msg()' to use 'printk()' instead of 'pr_debug()', just
15 as it was before the breakage.
17 Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
19 ---
20 fs/ubifs/debug.h | 5 ++++-
21 1 files changed, 4 insertions(+), 1 deletions(-)
23 diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h
24 index 8d9c468..3f65829 100644
25 --- a/fs/ubifs/debug.h
26 +++ b/fs/ubifs/debug.h
27 @@ -190,7 +190,10 @@ extern spinlock_t dbg_lock;
28 } while (0)
30 /* Just a debugging messages not related to any specific UBIFS subsystem */
31 -#define dbg_msg(fmt, ...) ubifs_dbg_msg("msg", fmt, ##__VA_ARGS__)
32 +#define dbg_msg(fmt, ...) \
33 + printk(KERN_DEBUG "UBIFS DBG (pid %d): %s: " fmt "\n", current->pid, \
34 + __func__, ##__VA_ARGS__)
35 +
36 /* General messages */
37 #define dbg_gen(fmt, ...) ubifs_dbg_msg("gen", fmt, ##__VA_ARGS__)
38 /* Additional journal messages */
39 --
40 1.7.7.4