net/sfc: fix log format specifiers
PATCH 1/1 net/sfc: fix log format specifiers
The format specifier for the 'size_t' format should be '%z'.
Also this fix enables compiling PMD for 32bit architecture.
Fixes ba641f207642 ("net/sfc: add init on attach")
Fixes 82faef507608 ("net/sfc: set RSS key and hash types config")
Fixes 7803554a9e38 ("net/sfc: process RSS settings on Rx configure step")
Signed-off-by Ferruh Yigit <[email protected]>
---
Cc: [email protected]
Cc: [email protected]
--- drivers/net/sfc/sfc.c | 2 +- drivers/net/sfc/sfc_ethdev.c | 2 +- drivers/net/sfc/sfc_rx.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/sfc/sfc.c +1 -1
@@ -30,7 +30,7 @@ sfc_dma_alloc(const struct sfc_adapter *sa, const char *name, uint16_t id, {const struct rte_memzone *mz; -sfc_log_init (sa,"name=%s id=%u len=%lu socket_id=%d" , +sfc_log_init (sa,"name=%s id=%u len=%zu socket_id=%d" , name, id, len, socket_id); mz = rte_eth_dma_zone_reserve(sa->eth_dev, name, id, len,
drivers/net/sfc/sfc_ethdev.c +1 -1
@@ -1520,7 +1520,7 @@ sfc_dev_rss_hash_update(struct rte_eth_dev *dev,if ((rss_conf->rss_key !=NULL ) && (rss_conf->rss_key_len !=sizeof (rss->key))) { -sfc_err (sa,"RSS key size is wrong (should be %lu)" , +sfc_err (sa,"RSS key size is wrong (should be %zu)" ,sizeof (rss->key));return -EINVAL ; }
drivers/net/sfc/sfc_rx.c +1 -1
@@ -1403,7 +1403,7 @@ sfc_rx_process_adv_conf_rss(struct sfc_adapter *sa,if (conf->rss_key !=NULL ) {if (conf->rss_key_len !=sizeof (rss->key)) { -sfc_err (sa,"RSS key size is wrong (should be %lu)" , +sfc_err (sa,"RSS key size is wrong (should be %zu)" ,sizeof (rss->key));return EINVAL ; }
Signature · 1 line
2.24.1
Quoted 10 lines · Ferruh Yigit
The format specifier for the '
size_t' format should be '%z'.Also this fix enables compiling PMD for 32bit architecture.
Fixes ba641f207642 ("net/sfc: add init on attach")Fixes 82faef507608 ("net/sfc: set RSS key and hash types config")Fixes 7803554a9e38 ("net/sfc: process RSS settings on Rx configure step")Signed-off-by Ferruh Yigit <[email protected]>
Reviewed-by Andrew Rybchenko <[email protected]>
Thanks.
Ferruh Yigit
AppliedQuoted 5 lines · Andrew Rybchenko
Quoted 4 lines · Ferruh Yigit
The format specifier for the '
size_t' format should be '%z'.Also this fix enables compiling PMD for 32bit architecture.
Quoted 9 lines
Quoted 6 lines
Fixes ba641f207642 ("net/sfc: add init on attach")Fixes 82faef507608 ("net/sfc: set RSS key and hash types config")Fixes 7803554a9e38 ("net/sfc: process RSS settings on Rx configure step")Signed-off-by Ferruh Yigit <[email protected]>Reviewed-by Andrew Rybchenko <[email protected]>
Applied to dpdk-next-net/master, thanks.