Skip to content

Commit 4903000

Browse files
Arun Easimartinkpetersen
authored andcommitted
scsi: qla2xxx: Allow ql2xextended_error_logging special value 1 to be set anytime
ql2xextended_error_logging can now be set to 1 to get the default mask value, as opposed to at module load time only. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Himanshu Madhani <[email protected]> Signed-off-by: Arun Easi <[email protected]> Signed-off-by: Nilesh Javali <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 81b9d1e commit 4903000

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/scsi/qla2xxx/qla_dbg.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,5 +380,8 @@ extern int qla24xx_soft_reset(struct qla_hw_data *);
380380
static inline int
381381
ql_mask_match(uint level)
382382
{
383+
if (ql2xextended_error_logging == 1)
384+
ql2xextended_error_logging = QL_DBG_DEFAULT1_MASK;
385+
383386
return (level & ql2xextended_error_logging) == level;
384387
}

0 commit comments

Comments
 (0)