diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2006-06-23 19:11:10 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-06-26 17:24:36 -0400 |
commit | 0181944fe647cae18d545ac1167df3d15d393701 (patch) | |
tree | 6889c9782bf1ce84345a3d128e82797a732f4cf9 /drivers/scsi/qla2xxx/qla_os.c | |
parent | 744f11fdb1118c9306303529263e5ed09b463a0f (diff) |
[SCSI] qla2xxx: Add support for extended error logging.
Similar in form to QLogic's standard offering -- via
the 'extended_error_logging' module parameter.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index fedf2f17808d..a15b60908133 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -61,6 +61,12 @@ MODULE_PARM_DESC(ql2xallocfwdump, | |||
61 | "during HBA initialization. Memory allocation requirements " | 61 | "during HBA initialization. Memory allocation requirements " |
62 | "vary by ISP type. Default is 1 - allocate memory."); | 62 | "vary by ISP type. Default is 1 - allocate memory."); |
63 | 63 | ||
64 | int extended_error_logging; | ||
65 | module_param(extended_error_logging, int, S_IRUGO|S_IRUSR); | ||
66 | MODULE_PARM_DESC(extended_error_logging, | ||
67 | "Option to enable extended error logging, " | ||
68 | "Default is 0 - no logging. 1 - log errors."); | ||
69 | |||
64 | static void qla2x00_free_device(scsi_qla_host_t *); | 70 | static void qla2x00_free_device(scsi_qla_host_t *); |
65 | 71 | ||
66 | static void qla2x00_config_dma_addressing(scsi_qla_host_t *ha); | 72 | static void qla2x00_config_dma_addressing(scsi_qla_host_t *ha); |
@@ -2691,9 +2697,9 @@ qla2x00_module_init(void) | |||
2691 | 2697 | ||
2692 | /* Derive version string. */ | 2698 | /* Derive version string. */ |
2693 | strcpy(qla2x00_version_str, QLA2XXX_VERSION); | 2699 | strcpy(qla2x00_version_str, QLA2XXX_VERSION); |
2694 | #if DEBUG_QLA2100 | 2700 | if (extended_error_logging) |
2695 | strcat(qla2x00_version_str, "-debug"); | 2701 | strcat(qla2x00_version_str, "-debug"); |
2696 | #endif | 2702 | |
2697 | qla2xxx_transport_template = | 2703 | qla2xxx_transport_template = |
2698 | fc_attach_transport(&qla2xxx_transport_functions); | 2704 | fc_attach_transport(&qla2xxx_transport_functions); |
2699 | if (!qla2xxx_transport_template) | 2705 | if (!qla2xxx_transport_template) |