Commit f0883ac6 authored by Andrew Vasquez's avatar Andrew Vasquez Committed by James Bottomley

[SCSI] qla2xxx: Add firmware version number to qla24xx_fw_version_str().

Add firmware version number to qla24xx_fw_version_str().

Original code was accidently trimmed during port.
Signed-off-by: default avatarAndrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 84e29308
...@@ -317,6 +317,10 @@ qla2x00_fw_version_str(struct scsi_qla_host *ha, char *str) ...@@ -317,6 +317,10 @@ qla2x00_fw_version_str(struct scsi_qla_host *ha, char *str)
char * char *
qla24xx_fw_version_str(struct scsi_qla_host *ha, char *str) qla24xx_fw_version_str(struct scsi_qla_host *ha, char *str)
{ {
sprintf(str, "%d.%02d.%02d ", ha->fw_major_version,
ha->fw_minor_version,
ha->fw_subminor_version);
if (ha->fw_attributes & BIT_0) if (ha->fw_attributes & BIT_0)
strcat(str, "[Class 2] "); strcat(str, "[Class 2] ");
if (ha->fw_attributes & BIT_1) if (ha->fw_attributes & BIT_1)
...@@ -326,7 +330,6 @@ qla24xx_fw_version_str(struct scsi_qla_host *ha, char *str) ...@@ -326,7 +330,6 @@ qla24xx_fw_version_str(struct scsi_qla_host *ha, char *str)
if (ha->fw_attributes & BIT_13) if (ha->fw_attributes & BIT_13)
strcat(str, "[Experimental]"); strcat(str, "[Experimental]");
return str; return str;
} }
static inline srb_t * static inline srb_t *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment