From: Andrew Vasquez Date: Sat, 9 Jul 2005 00:58:43 +0000 (-0700) Subject: [SCSI] qla2xxx: Add firmware version number to qla24xx_fw_version_str(). X-Git-Tag: v2.6.13-rc4~75^2~6 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0883ac6a74b403f0f2e91166ba06227cc4690e6;p=linux-2.6 [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: Andrew Vasquez Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index cf104abfd0..d726f48728 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) 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 *