net/ice: fix firmware version output
Kernel driver shows firmware version as hex but ice PMD shows as decimal. This patch fixes the issue to make consistent with kernel driver. Fixes: f9204d8a23c3 ("net/ice: fix firmware version result of ethtool") Cc: stable@dpdk.org Signed-off-by: Shougang Wang <shougangx.wang@intel.com> Acked-by: Qiming Yang <qiming.yang@intel.com>
This commit is contained in:
parent
d73543b5f4
commit
26cf65b23d
@ -4415,7 +4415,7 @@ ice_fw_version_get(struct rte_eth_dev *dev, char *fw_version, size_t fw_size)
|
||||
build = hw->nvm.orom.build;
|
||||
|
||||
ret = snprintf(fw_version, fw_size,
|
||||
"%d.%d 0x%08x %d.%d.%d",
|
||||
"%x.%02x 0x%08x %d.%d.%d",
|
||||
hw->nvm.major_ver,
|
||||
hw->nvm.minor_ver,
|
||||
hw->nvm.eetrack,
|
||||
|
Loading…
x
Reference in New Issue
Block a user