summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.2/0053-UBI-fix-debugging-messages.patch
diff options
context:
space:
mode:
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.patch42
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 @@
1From 5aefc74158a4193f8e1f0ee3b9af21fd76ace6ca Mon Sep 17 00:00:00 2001
2From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
3Date: Tue, 10 Jan 2012 19:32:30 +0200
4Subject: [PATCH 053/130] UBI: fix debugging messages
5
6commit 72f0d453d81d35087b1d3ad7c8285628c2be6e1d upstream.
7
8Patch ab50ff684707031ed4bad2fdd313208ae392e5bb broke UBI debugging messages:
9before that commit when UBI debugging was enabled, users saw few useful
10debugging messages after attaching an MTD device. However, that patch turned
11'dbg_msg()' into 'pr_debug()', so to enable the debugging messages users have
12to enable them first via /sys/kernel/debug/dynamic_debug/control, which is
13very impractical.
14
15This commit makes 'dbg_msg()' to use 'printk()' instead of 'pr_debug()', just
16as it was before the breakage.
17
18Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
19Signed-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
24diff --git a/drivers/mtd/ubi/debug.h b/drivers/mtd/ubi/debug.h
25index 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--
411.7.7.4
42