[SCSI] qla2xxx: Add firmware version number to qla24xx_fw_version_str().
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Sat, 9 Jul 2005 00:58:43 +0000 (17:58 -0700)
committerJames Bottomley <jejb@mulgrave.(none)>
Thu, 14 Jul 2005 15:15:10 +0000 (11:15 -0400)
Add firmware version number to qla24xx_fw_version_str().

Original code was accidently trimmed during port.

Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/qla2xxx/qla_os.c

index cf104abfd0478e49b66bff5a30d7ab5e333272da..d726f48728ec2ef807637c0ad4957dcd9544dc7c 100644 (file)
@@ -317,6 +317,10 @@ qla2x00_fw_version_str(struct scsi_qla_host *ha, char *str)
 char *
 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)
                strcat(str, "[Class 2] ");
        if (ha->fw_attributes & BIT_1)
@@ -326,7 +330,6 @@ qla24xx_fw_version_str(struct scsi_qla_host *ha, char *str)
        if (ha->fw_attributes & BIT_13)
                strcat(str, "[Experimental]");
        return str;
-
 }
 
 static inline srb_t *