Skip to content

Commit d34315d

Browse files
committed
UBIFS: fix debugging messages
Patch 56e4674 broke UBIFS debugging messages: before that commit when UBIFS debugging was enabled, users saw few useful debugging messages after mount. However, that patch turned 'dbg_msg()' into 'pr_debug()', so to enable the debugging messages users have to enable them first via /sys/kernel/debug/dynamic_debug/control, which is very impractical. This commit makes 'dbg_msg()' to use 'printk()' instead of 'pr_debug()', just as it was before the breakage. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Cc: stable@kernel.org [3.0+]
1 parent 1f5d78d commit d34315d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎fs/ubifs/debug.h‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,10 @@ extern spinlock_t dbg_lock;
188188
pr_debug("UBIFS DBG " type ": " fmt "\n", ##__VA_ARGS__)
189189

190190
/* Just a debugging messages not related to any specific UBIFS subsystem */
191-
#define dbg_msg(fmt, ...) ubifs_dbg_msg("msg", fmt, ##__VA_ARGS__)
191+
#define dbg_msg(fmt, ...) \
192+
printk(KERN_DEBUG "UBIFS DBG (pid %d): %s: " fmt "\n", current->pid, \
193+
__func__, ##__VA_ARGS__)
194+
192195
/* General messages */
193196
#define dbg_gen(fmt, ...) ubifs_dbg_msg("gen", fmt, ##__VA_ARGS__)
194197
/* Additional journal messages */

0 commit comments

Comments
 (0)