scsi: qla2xxx: Move logging default mask to execute once only.
Signed-off-by: Joe Carnuccio <joe.carnuccio@cavium.com> Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
f3caa9905d
commit
fed0f68aa1
|
@ -2520,8 +2520,6 @@ qla83xx_fw_dump_failed:
|
||||||
static inline int
|
static inline int
|
||||||
ql_mask_match(uint32_t level)
|
ql_mask_match(uint32_t level)
|
||||||
{
|
{
|
||||||
if (ql2xextended_error_logging == 1)
|
|
||||||
ql2xextended_error_logging = QL_DBG_DEFAULT1_MASK;
|
|
||||||
return (level & ql2xextended_error_logging) == level;
|
return (level & ql2xextended_error_logging) == level;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6648,6 +6648,8 @@ qla2x00_module_init(void)
|
||||||
strcpy(qla2x00_version_str, QLA2XXX_VERSION);
|
strcpy(qla2x00_version_str, QLA2XXX_VERSION);
|
||||||
if (ql2xextended_error_logging)
|
if (ql2xextended_error_logging)
|
||||||
strcat(qla2x00_version_str, "-debug");
|
strcat(qla2x00_version_str, "-debug");
|
||||||
|
if (ql2xextended_error_logging == 1)
|
||||||
|
ql2xextended_error_logging = QL_DBG_DEFAULT1_MASK;
|
||||||
|
|
||||||
qla2xxx_transport_template =
|
qla2xxx_transport_template =
|
||||||
fc_attach_transport(&qla2xxx_transport_functions);
|
fc_attach_transport(&qla2xxx_transport_functions);
|
||||||
|
|
Loading…
Reference in New Issue