[SCSI] qla2xxx: Log if qla82xx firmware fails to load from flash.
authorChad Dupuis <chad.dupuis@qlogic.com>
Tue, 10 May 2011 18:30:09 +0000 (11:30 -0700)
committerJames Bottomley <jbottomley@parallels.com>
Tue, 17 May 2011 07:32:11 +0000 (11:32 +0400)
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla2xxx/qla_nx.c

index 8b217f39d23c0ed70120b2e800de9a84af6d72da..752b03e7622a06cbbaed48a4c8a379a4c9422d07 100644 (file)
@@ -2410,9 +2410,13 @@ qla82xx_load_fw(scsi_qla_host_t *vha)
 
        if (qla82xx_fw_load_from_flash(ha) == QLA_SUCCESS) {
                qla_printk(KERN_ERR, ha,
-                       "Firmware loaded successfully from flash\n");
+                   "Firmware loaded successfully from flash\n");
                return QLA_SUCCESS;
+       } else {
+               qla_printk(KERN_ERR, ha,
+                   "Firmware load from flash failed\n");
        }
+
 try_blob_fw:
        qla_printk(KERN_INFO, ha,
            "Attempting to load firmware from blob\n");