[SCSI] qla2xxx: Log fcport state transitions when debug messages are enabled.
Add the inline function qla2x00_set_port_state() so that when a fcport state transition happens we can log the state transition if debug messages are enabled. Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
committed by
James Bottomley
parent
a4f92a32a0
commit
ec426e106c
@@ -1717,6 +1717,14 @@ typedef struct fc_port {
|
||||
#define FCS_DEVICE_LOST 3
|
||||
#define FCS_ONLINE 4
|
||||
|
||||
static const char * const port_state_str[] = {
|
||||
"Unknown",
|
||||
"UNCONFIGURED",
|
||||
"DEAD",
|
||||
"LOST",
|
||||
"ONLINE"
|
||||
};
|
||||
|
||||
/*
|
||||
* FC port flags.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user