aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index cf104abfd047..d726f48728ec 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -317,6 +317,10 @@ qla2x00_fw_version_str(struct scsi_qla_host *ha, char *str)
317char * 317char *
318qla24xx_fw_version_str(struct scsi_qla_host *ha, char *str) 318qla24xx_fw_version_str(struct scsi_qla_host *ha, char *str)
319{ 319{
320 sprintf(str, "%d.%02d.%02d ", ha->fw_major_version,
321 ha->fw_minor_version,
322 ha->fw_subminor_version);
323
320 if (ha->fw_attributes & BIT_0) 324 if (ha->fw_attributes & BIT_0)
321 strcat(str, "[Class 2] "); 325 strcat(str, "[Class 2] ");
322 if (ha->fw_attributes & BIT_1) 326 if (ha->fw_attributes & BIT_1)
@@ -326,7 +330,6 @@ qla24xx_fw_version_str(struct scsi_qla_host *ha, char *str)
326 if (ha->fw_attributes & BIT_13) 330 if (ha->fw_attributes & BIT_13)
327 strcat(str, "[Experimental]"); 331 strcat(str, "[Experimental]");
328 return str; 332 return str;
329
330} 333}
331 334
332static inline srb_t * 335static inline srb_t *