aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi/debug.c')
-rw-r--r--drivers/mtd/ubi/debug.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c
index d4d07e5f138f..2224cbe41ddf 100644
--- a/drivers/mtd/ubi/debug.c
+++ b/drivers/mtd/ubi/debug.c
@@ -30,15 +30,12 @@
30#include <linux/module.h> 30#include <linux/module.h>
31#include <linux/moduleparam.h> 31#include <linux/moduleparam.h>
32 32
33unsigned int ubi_msg_flags;
34unsigned int ubi_chk_flags; 33unsigned int ubi_chk_flags;
35unsigned int ubi_tst_flags; 34unsigned int ubi_tst_flags;
36 35
37module_param_named(debug_msgs, ubi_msg_flags, uint, S_IRUGO | S_IWUSR);
38module_param_named(debug_chks, ubi_chk_flags, uint, S_IRUGO | S_IWUSR); 36module_param_named(debug_chks, ubi_chk_flags, uint, S_IRUGO | S_IWUSR);
39module_param_named(debug_tsts, ubi_chk_flags, uint, S_IRUGO | S_IWUSR); 37module_param_named(debug_tsts, ubi_chk_flags, uint, S_IRUGO | S_IWUSR);
40 38
41MODULE_PARM_DESC(debug_msgs, "Debug message type flags");
42MODULE_PARM_DESC(debug_chks, "Debug check flags"); 39MODULE_PARM_DESC(debug_chks, "Debug check flags");
43MODULE_PARM_DESC(debug_tsts, "Debug special test flags"); 40MODULE_PARM_DESC(debug_tsts, "Debug special test flags");
44 41
@@ -75,15 +72,15 @@ void ubi_dbg_dump_vid_hdr(const struct ubi_vid_hdr *vid_hdr)
75{ 72{
76 printk(KERN_DEBUG "Volume identifier header dump:\n"); 73 printk(KERN_DEBUG "Volume identifier header dump:\n");
77 printk(KERN_DEBUG "\tmagic %08x\n", be32_to_cpu(vid_hdr->magic)); 74 printk(KERN_DEBUG "\tmagic %08x\n", be32_to_cpu(vid_hdr->magic));
78 printk(KERN_DEBUG "\tversion %d\n", (int)vid_hdr->version); 75 printk(KERN_DEBUG "\tversion %d\n", (int)vid_hdr->version);
79 printk(KERN_DEBUG "\tvol_type %d\n", (int)vid_hdr->vol_type); 76 printk(KERN_DEBUG "\tvol_type %d\n", (int)vid_hdr->vol_type);
80 printk(KERN_DEBUG "\tcopy_flag %d\n", (int)vid_hdr->copy_flag); 77 printk(KERN_DEBUG "\tcopy_flag %d\n", (int)vid_hdr->copy_flag);
81 printk(KERN_DEBUG "\tcompat %d\n", (int)vid_hdr->compat); 78 printk(KERN_DEBUG "\tcompat %d\n", (int)vid_hdr->compat);
82 printk(KERN_DEBUG "\tvol_id %d\n", be32_to_cpu(vid_hdr->vol_id)); 79 printk(KERN_DEBUG "\tvol_id %d\n", be32_to_cpu(vid_hdr->vol_id));
83 printk(KERN_DEBUG "\tlnum %d\n", be32_to_cpu(vid_hdr->lnum)); 80 printk(KERN_DEBUG "\tlnum %d\n", be32_to_cpu(vid_hdr->lnum));
84 printk(KERN_DEBUG "\tdata_size %d\n", be32_to_cpu(vid_hdr->data_size)); 81 printk(KERN_DEBUG "\tdata_size %d\n", be32_to_cpu(vid_hdr->data_size));
85 printk(KERN_DEBUG "\tused_ebs %d\n", be32_to_cpu(vid_hdr->used_ebs)); 82 printk(KERN_DEBUG "\tused_ebs %d\n", be32_to_cpu(vid_hdr->used_ebs));
86 printk(KERN_DEBUG "\tdata_pad %d\n", be32_to_cpu(vid_hdr->data_pad)); 83 printk(KERN_DEBUG "\tdata_pad %d\n", be32_to_cpu(vid_hdr->data_pad));
87 printk(KERN_DEBUG "\tsqnum %llu\n", 84 printk(KERN_DEBUG "\tsqnum %llu\n",
88 (unsigned long long)be64_to_cpu(vid_hdr->sqnum)); 85 (unsigned long long)be64_to_cpu(vid_hdr->sqnum));
89 printk(KERN_DEBUG "\thdr_crc %08x\n", be32_to_cpu(vid_hdr->hdr_crc)); 86 printk(KERN_DEBUG "\thdr_crc %08x\n", be32_to_cpu(vid_hdr->hdr_crc));