diff options
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0053-UBI-fix-debugging-messages.patch')
-rw-r--r-- | recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0053-UBI-fix-debugging-messages.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0053-UBI-fix-debugging-messages.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0053-UBI-fix-debugging-messages.patch new file mode 100644 index 00000000..16cccbcc --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0053-UBI-fix-debugging-messages.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 5aefc74158a4193f8e1f0ee3b9af21fd76ace6ca 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 053/130] UBI: fix debugging messages | ||
5 | |||
6 | commit 72f0d453d81d35087b1d3ad7c8285628c2be6e1d upstream. | ||
7 | |||
8 | Patch ab50ff684707031ed4bad2fdd313208ae392e5bb broke UBI debugging messages: | ||
9 | before that commit when UBI debugging was enabled, users saw few useful | ||
10 | debugging messages after attaching an MTD device. However, that patch turned | ||
11 | 'dbg_msg()' into 'pr_debug()', so to enable the debugging messages users have | ||
12 | to enable them first via /sys/kernel/debug/dynamic_debug/control, which is | ||
13 | very impractical. | ||
14 | |||
15 | This commit makes 'dbg_msg()' to use 'printk()' instead of 'pr_debug()', just | ||
16 | as it was before the breakage. | ||
17 | |||
18 | Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | ||
19 | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> | ||
20 | --- | ||
21 | drivers/mtd/ubi/debug.h | 5 ++++- | ||
22 | 1 files changed, 4 insertions(+), 1 deletions(-) | ||
23 | |||
24 | diff --git a/drivers/mtd/ubi/debug.h b/drivers/mtd/ubi/debug.h | ||
25 | index 64fbb00..ead2cd1 100644 | ||
26 | --- a/drivers/mtd/ubi/debug.h | ||
27 | +++ b/drivers/mtd/ubi/debug.h | ||
28 | @@ -43,7 +43,10 @@ | ||
29 | pr_debug("UBI DBG " type ": " fmt "\n", ##__VA_ARGS__) | ||
30 | |||
31 | /* Just a debugging messages not related to any specific UBI subsystem */ | ||
32 | -#define dbg_msg(fmt, ...) ubi_dbg_msg("msg", fmt, ##__VA_ARGS__) | ||
33 | +#define dbg_msg(fmt, ...) \ | ||
34 | + printk(KERN_DEBUG "UBI DBG (pid %d): %s: " fmt "\n", \ | ||
35 | + current->pid, __func__, ##__VA_ARGS__) | ||
36 | + | ||
37 | /* General debugging messages */ | ||
38 | #define dbg_gen(fmt, ...) ubi_dbg_msg("gen", fmt, ##__VA_ARGS__) | ||
39 | /* Messages from the eraseblock association sub-system */ | ||
40 | -- | ||
41 | 1.7.7.4 | ||
42 | |||