From: Shougang Wang Date: Fri, 11 Sep 2020 02:40:41 +0000 (+0000) Subject: net/ice: fix firmware version output X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=26cf65b23dd2178334d3aa6389af6694fceec2bb;p=dpdk.git 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 Acked-by: Qiming Yang --- diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index 724b2ee26c..8fb4b30c05 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -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,