RDMA/qedr: Fix reported firmware version
Remove spaces from the reported firmware version string.
Actual value:
$ cat /sys/class/infiniband/qedr0/fw_ver
8. 37. 7. 0
Expected value:
$ cat /sys/class/infiniband/qedr0/fw_ver
8.37.7.0
Fixes: ec72fce401
("qedr: Add support for RoCE HW init")
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Acked-by: Michal Kalderon <michal.kalderon@marvell.com>
Link: https://lore.kernel.org/r/20191007210730.7173-1-kamalheib1@gmail.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
e17fa5c95e
commit
b806c94ee4
|
@ -76,7 +76,7 @@ static void qedr_get_dev_fw_str(struct ib_device *ibdev, char *str)
|
||||||
struct qedr_dev *qedr = get_qedr_dev(ibdev);
|
struct qedr_dev *qedr = get_qedr_dev(ibdev);
|
||||||
u32 fw_ver = (u32)qedr->attr.fw_ver;
|
u32 fw_ver = (u32)qedr->attr.fw_ver;
|
||||||
|
|
||||||
snprintf(str, IB_FW_VERSION_NAME_MAX, "%d. %d. %d. %d",
|
snprintf(str, IB_FW_VERSION_NAME_MAX, "%d.%d.%d.%d",
|
||||||
(fw_ver >> 24) & 0xFF, (fw_ver >> 16) & 0xFF,
|
(fw_ver >> 24) & 0xFF, (fw_ver >> 16) & 0xFF,
|
||||||
(fw_ver >> 8) & 0xFF, fw_ver & 0xFF);
|
(fw_ver >> 8) & 0xFF, fw_ver & 0xFF);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue