diff options
author | Karen Higgins <karen.higgins@qlogic.com> | 2012-01-11 05:44:20 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-01-16 03:35:22 -0500 |
commit | a4e8a715a39e5d29f7d35a7289b914ef205a866b (patch) | |
tree | 86b24656a4ab33e429e8692dbeea60521530d6ac | |
parent | 991039f9f40d0809108e8d453c68c2ae965b3ac4 (diff) |
[SCSI] qla4xxx: Cleanup modinfo display
Beautify modinfo display. Display correct info for ql4xextended_error_logging
[jejb: fixup checkpatch warning]
Signed-off-by: Karen Higgins <karen.higgins@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_os.c | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index b75590af8ed3..ce6d3b7f0c61 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c | |||
@@ -35,43 +35,44 @@ static struct kmem_cache *srb_cachep; | |||
35 | int ql4xdisablesysfsboot = 1; | 35 | int ql4xdisablesysfsboot = 1; |
36 | module_param(ql4xdisablesysfsboot, int, S_IRUGO | S_IWUSR); | 36 | module_param(ql4xdisablesysfsboot, int, S_IRUGO | S_IWUSR); |
37 | MODULE_PARM_DESC(ql4xdisablesysfsboot, | 37 | MODULE_PARM_DESC(ql4xdisablesysfsboot, |
38 | "Set to disable exporting boot targets to sysfs\n" | 38 | " Set to disable exporting boot targets to sysfs.\n" |
39 | " 0 - Export boot targets\n" | 39 | "\t\t 0 - Export boot targets\n" |
40 | " 1 - Do not export boot targets (Default)"); | 40 | "\t\t 1 - Do not export boot targets (Default)"); |
41 | 41 | ||
42 | int ql4xdontresethba = 0; | 42 | int ql4xdontresethba = 0; |
43 | module_param(ql4xdontresethba, int, S_IRUGO | S_IWUSR); | 43 | module_param(ql4xdontresethba, int, S_IRUGO | S_IWUSR); |
44 | MODULE_PARM_DESC(ql4xdontresethba, | 44 | MODULE_PARM_DESC(ql4xdontresethba, |
45 | "Don't reset the HBA for driver recovery \n" | 45 | " Don't reset the HBA for driver recovery.\n" |
46 | " 0 - It will reset HBA (Default)\n" | 46 | "\t\t 0 - It will reset HBA (Default)\n" |
47 | " 1 - It will NOT reset HBA"); | 47 | "\t\t 1 - It will NOT reset HBA"); |
48 | 48 | ||
49 | int ql4xextended_error_logging = 0; /* 0 = off, 1 = log errors */ | 49 | int ql4xextended_error_logging; |
50 | module_param(ql4xextended_error_logging, int, S_IRUGO | S_IWUSR); | 50 | module_param(ql4xextended_error_logging, int, S_IRUGO | S_IWUSR); |
51 | MODULE_PARM_DESC(ql4xextended_error_logging, | 51 | MODULE_PARM_DESC(ql4xextended_error_logging, |
52 | "Option to enable extended error logging, " | 52 | " Option to enable extended error logging.\n" |
53 | "Default is 0 - no logging, 1 - debug logging"); | 53 | "\t\t 0 - no logging (Default)\n" |
54 | "\t\t 2 - debug logging"); | ||
54 | 55 | ||
55 | int ql4xenablemsix = 1; | 56 | int ql4xenablemsix = 1; |
56 | module_param(ql4xenablemsix, int, S_IRUGO|S_IWUSR); | 57 | module_param(ql4xenablemsix, int, S_IRUGO|S_IWUSR); |
57 | MODULE_PARM_DESC(ql4xenablemsix, | 58 | MODULE_PARM_DESC(ql4xenablemsix, |
58 | "Set to enable MSI or MSI-X interrupt mechanism.\n" | 59 | " Set to enable MSI or MSI-X interrupt mechanism.\n" |
59 | " 0 = enable INTx interrupt mechanism.\n" | 60 | "\t\t 0 = enable INTx interrupt mechanism.\n" |
60 | " 1 = enable MSI-X interrupt mechanism (Default).\n" | 61 | "\t\t 1 = enable MSI-X interrupt mechanism (Default).\n" |
61 | " 2 = enable MSI interrupt mechanism."); | 62 | "\t\t 2 = enable MSI interrupt mechanism."); |
62 | 63 | ||
63 | #define QL4_DEF_QDEPTH 32 | 64 | #define QL4_DEF_QDEPTH 32 |
64 | static int ql4xmaxqdepth = QL4_DEF_QDEPTH; | 65 | static int ql4xmaxqdepth = QL4_DEF_QDEPTH; |
65 | module_param(ql4xmaxqdepth, int, S_IRUGO | S_IWUSR); | 66 | module_param(ql4xmaxqdepth, int, S_IRUGO | S_IWUSR); |
66 | MODULE_PARM_DESC(ql4xmaxqdepth, | 67 | MODULE_PARM_DESC(ql4xmaxqdepth, |
67 | "Maximum queue depth to report for target devices.\n" | 68 | " Maximum queue depth to report for target devices.\n" |
68 | " Default: 32."); | 69 | "\t\t Default: 32."); |
69 | 70 | ||
70 | static int ql4xsess_recovery_tmo = QL4_SESS_RECOVERY_TMO; | 71 | static int ql4xsess_recovery_tmo = QL4_SESS_RECOVERY_TMO; |
71 | module_param(ql4xsess_recovery_tmo, int, S_IRUGO); | 72 | module_param(ql4xsess_recovery_tmo, int, S_IRUGO); |
72 | MODULE_PARM_DESC(ql4xsess_recovery_tmo, | 73 | MODULE_PARM_DESC(ql4xsess_recovery_tmo, |
73 | "Target Session Recovery Timeout.\n" | 74 | "Target Session Recovery Timeout.\n" |
74 | " Default: 120 sec."); | 75 | "\t\t Default: 120 sec."); |
75 | 76 | ||
76 | static int qla4xxx_wait_for_hba_online(struct scsi_qla_host *ha); | 77 | static int qla4xxx_wait_for_hba_online(struct scsi_qla_host *ha); |
77 | /* | 78 | /* |