mirror of https://gitee.com/openkylin/linux.git
net/mlx5e: Change FW sub_minor display to 4 zeros padding
FW version should be reported as X.Y.ZZZZ, add leading zeroes to sub minor in order to fix it. Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
parent
f6d96a2092
commit
6543b78ea1
|
@ -42,7 +42,7 @@ static void mlx5e_get_drvinfo(struct net_device *dev,
|
||||||
strlcpy(drvinfo->version, DRIVER_VERSION " (" DRIVER_RELDATE ")",
|
strlcpy(drvinfo->version, DRIVER_VERSION " (" DRIVER_RELDATE ")",
|
||||||
sizeof(drvinfo->version));
|
sizeof(drvinfo->version));
|
||||||
snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
|
snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
|
||||||
"%d.%d.%d",
|
"%d.%d.%04d",
|
||||||
fw_rev_maj(mdev), fw_rev_min(mdev), fw_rev_sub(mdev));
|
fw_rev_maj(mdev), fw_rev_min(mdev), fw_rev_sub(mdev));
|
||||||
strlcpy(drvinfo->bus_info, pci_name(mdev->pdev),
|
strlcpy(drvinfo->bus_info, pci_name(mdev->pdev),
|
||||||
sizeof(drvinfo->bus_info));
|
sizeof(drvinfo->bus_info));
|
||||||
|
|
Loading…
Reference in New Issue