diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2005-07-08 20:58:43 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-07-14 11:15:10 -0400 |
commit | f0883ac6a74b403f0f2e91166ba06227cc4690e6 (patch) | |
tree | cac7bf4c6ee6eb3c8c3797f34c45498d22a8f00f /drivers | |
parent | 84e29308ede3edb4f03911246c33d697ff18722e (diff) |
[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 <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 5 |
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) | |||
317 | char * | 317 | char * |
318 | qla24xx_fw_version_str(struct scsi_qla_host *ha, char *str) | 318 | qla24xx_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 | ||
332 | static inline srb_t * | 335 | static inline srb_t * |