xen/pciback: Check if the device is found instead of blindly assuming so.
[firefly-linux-kernel-4.4.55.git] / drivers / scsi / qla2xxx / qla_inline.h
index 4c8167e11f69e6ebf7d5658cac18675529237015..d2e904bc21c018606d3a40bf40f34ba3437d6159 100644 (file)
@@ -94,11 +94,11 @@ qla2x00_set_fcport_state(fc_port_t *fcport, int state)
 
        /* Don't print state transitions during initial allocation of fcport */
        if (old_state && old_state != state) {
-               DEBUG(qla_printk(KERN_WARNING, fcport->vha->hw,
-                   "scsi(%ld): FCPort state transitioned from %s to %s - "
-                   "portid=%02x%02x%02x.\n", fcport->vha->host_no,
+               ql_dbg(ql_dbg_disc, fcport->vha, 0x207d,
+                   "FCPort state transitioned from %s to %s - "
+                   "portid=%02x%02x%02x.\n",
                    port_state_str[old_state], port_state_str[state],
                    fcport->d_id.b.domain, fcport->d_id.b.area,
-                   fcport->d_id.b.al_pa));
+                   fcport->d_id.b.al_pa);
        }
 }