[SCSI] bfa: Fix bfa logging for Logical port state change notification
authorKrishna Gudipati <kgudipat@brocade.com>
Tue, 10 Apr 2012 01:41:18 +0000 (18:41 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 25 Apr 2012 09:02:03 +0000 (10:02 +0100)
Made changes to have the same logging level for Logical port
online and offline events, to display these events in pairs.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/bfa/bfa_fcs_lport.c

index cd01fc02c4cd095f05bcdd87dd62e157148de5d1..937000db62a824d6e148ae5512bed4b495a45ef8 100644 (file)
@@ -616,7 +616,7 @@ bfa_fcs_lport_online_actions(struct bfa_fcs_lport_s *port)
        __port_action[port->fabric->fab_type].online(port);
 
        wwn2str(lpwwn_buf, bfa_fcs_lport_get_pwwn(port));
-       BFA_LOG(KERN_INFO, bfad, bfa_log_level,
+       BFA_LOG(KERN_WARNING, bfad, bfa_log_level,
                "Logical port online: WWN = %s Role = %s\n",
                lpwwn_buf, "Initiator");
        bfa_fcs_lport_aen_post(port, BFA_LPORT_AEN_ONLINE);
@@ -639,12 +639,12 @@ bfa_fcs_lport_offline_actions(struct bfa_fcs_lport_s *port)
        wwn2str(lpwwn_buf, bfa_fcs_lport_get_pwwn(port));
        if (bfa_sm_cmp_state(port->fabric,
                        bfa_fcs_fabric_sm_online) == BFA_TRUE) {
-               BFA_LOG(KERN_ERR, bfad, bfa_log_level,
+               BFA_LOG(KERN_WARNING, bfad, bfa_log_level,
                "Logical port lost fabric connectivity: WWN = %s Role = %s\n",
                lpwwn_buf, "Initiator");
                bfa_fcs_lport_aen_post(port, BFA_LPORT_AEN_DISCONNECT);
        } else {
-               BFA_LOG(KERN_INFO, bfad, bfa_log_level,
+               BFA_LOG(KERN_WARNING, bfad, bfa_log_level,
                "Logical port taken offline: WWN = %s Role = %s\n",
                lpwwn_buf, "Initiator");
                bfa_fcs_lport_aen_post(port, BFA_LPORT_AEN_OFFLINE);