projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1cf7a2
)
[SCSI] esas2r: Cleanup snprinf formatting of firmware version
author
Bradley Grove
<bgrove@attotech.com>
Tue, 1 Oct 2013 18:26:04 +0000
(14:26 -0400)
committer
James Bottomley
<JBottomley@Parallels.com>
Fri, 25 Oct 2013 08:58:59 +0000
(09:58 +0100)
Signed-off-by: Bradley Grove <bgrove@attotech.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/esas2r/esas2r_vda.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/esas2r/esas2r_vda.c
b/drivers/scsi/esas2r/esas2r_vda.c
index 27e97215bb2f5e07441acb44565873c58cf16001..30028e56df63790e7f8ae1a9b6caec3a729fc966 100644
(file)
--- a/
drivers/scsi/esas2r/esas2r_vda.c
+++ b/
drivers/scsi/esas2r/esas2r_vda.c
@@
-310,9
+310,9
@@
static void esas2r_complete_vda_ioctl(struct esas2r_adapter *a,
le32_to_cpu(rsp->vda_version);
cfg->data.init.fw_build = rsp->fw_build;
- snprintf(buf, sizeof(buf), "%1
d.%02d
",
- (int)LOBYTE(le16_to_cpu(rsp->fw_release)),
- (int)HIBYTE(le16_to_cpu(rsp->fw_release)));
+ snprintf(buf, sizeof(buf), "%1
.1u.%2.2u
",
+
(int)LOBYTE(le16_to_cpu(rsp->fw_release)),
+
(int)HIBYTE(le16_to_cpu(rsp->fw_release)));
memcpy(&cfg->data.init.fw_release, buf,
sizeof(cfg->data.init.fw_release));