UBIFS: fix kernel-doc comments
PATCH 1/2 UBIFS: fix kernel-doc comments
From: Artem Bityutskiy <[email protected]>
This is a minor fix for UBIFS kernel-doc comments - we forgot the "@" symbol for several 'struct ubifs_debug_info'.
--- fs/ubifs/debug.h | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
fs/ubifs/debug.h +5 -5
@@ -56,11 +56,11 @@ typedef int (*dbg_znode_callback)(struct ubifs_info *c,* @saved_free: saved amount of free space * @saved_idx_gc_cnt: saved value of @c->idx_gc_cnt * -* dfs_dir_name: name of debugfs directory containing this file-system's files -* dfs_dir: direntry object of the file-system debugfs directory -* dfs_dump_lprops: "dump lprops" debugfs knob -* dfs_dump_budg: "dump budgeting information" debugfs knob -* dfs_dump_tnc: "dump TNC" debugfs knob +* @dfs_dir_name: name of debugfs directory containing this file-system's files +* @dfs_dir: direntry object of the file-system debugfs directory +* @dfs_dump_lprops: "dump lprops" debugfs knob +* @dfs_dump_budg: "dump budgeting information" debugfs knob +* @dfs_dump_tnc: "dump TNC" debugfs knob */ struct ubifs_debug_info {struct ubifs_zbranch old_zroot;
Signature · 1 line
1.7.2.3
PATCH 2/2 UBIFS: switch to dynamic printks
From: Artem Bityutskiy <[email protected]>
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.
--- Documentation/filesystems/ubifs.txt | 25 +------ fs/ubifs/debug.c | 3 - fs/ubifs/debug.h | 132 +++++++++++------------------------ 3 files changed, 43 insertions(+), 117 deletions(-)
Documentation/filesystems/ubifs.txt +2 -23
@@ -115,28 +115,8 @@ ubi.mtd=0 root=ubi0:rootfs rootfstype=ubifs Module Parameters for Debugging =============================== -When UBIFS has been compiled with debugging enabled, there are 3 module +When UBIFS has been compiled with debugging enabled, there are 2 module parameters that are available to control aspects of testing and debugging. -The parameters are unsigned integers where each bit controls an option. -The parameters are: - -debug_msgs Selects which debug messages to display, as follows: - - Message Type Flag value - - General messages 1 - Journal messages 2 - Mount messages 4 - Commit messages 8 - LEB search messages 16 - Budgeting messages 32 - Garbage collection messages 64 - Tree Node Cache (TNC) messages 128 - LEB properties (lprops) messages 256 - Input/output messages 512 - Log messages 1024 - Scan messages 2048 - Recovery messages 4096 debug_chks Selects extra checks that UBIFS can do while running:
@@ -156,8 +136,7 @@ debug_tsts Selects a mode of testing, as follows: Failure mode for recovery testing 4 -For example, set debug_msgs to 5 to display General messages and Mount -messages. +For example, set debug_chks to 3 to enable general and TNC checks. References
fs/ubifs/debug.c +0 -3
@@ -42,15 +42,12 @@ DEFINE_SPINLOCK(dbg_lock);static char dbg_key_buf0[128 ];static char dbg_key_buf1[128 ]; -unsigned int ubifs_msg_flags;unsigned int ubifs_chk_flags;unsigned int ubifs_tst_flags; -module_param_named (debug_msgs, ubifs_msg_flags, uint,S_IRUGO |S_IWUSR );module_param_named (debug_chks, ubifs_chk_flags, uint,S_IRUGO |S_IWUSR );module_param_named (debug_tsts, ubifs_tst_flags, uint,S_IRUGO |S_IWUSR ); -MODULE_PARM_DESC (debug_msgs,"Debug message type flags" );MODULE_PARM_DESC (debug_chks,"Debug check flags" );MODULE_PARM_DESC (debug_tsts,"Debug special test flags" );
fs/ubifs/debug.h +41 -91
170 lines not on this page · raw message
Signature · 1 line
1.7.2.3