patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH] net/sfc: fix log format specifiers
@ 2020-02-19 14:04 Ferruh Yigit
  2020-02-19 14:11 ` [dpdk-stable] [dpdk-dev] " Andrew Rybchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Ferruh Yigit @ 2020-02-19 14:04 UTC (permalink / raw)
  To: Andrew Rybchenko, Andy Moreton, Andrew Lee, Ivan Malov,
	Robert Stonehouse
  Cc: dev, Ferruh Yigit, stable

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")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
Cc: arybchenko@solarflare.com
Cc: ivan.malov@oktetlabs.ru
---
 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(-)

diff --git a/drivers/net/sfc/sfc.c b/drivers/net/sfc/sfc.c
index 141c767f0..c6b514ac2 100644
--- a/drivers/net/sfc/sfc.c
+++ b/drivers/net/sfc/sfc.c
@@ -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,
diff --git a/drivers/net/sfc/sfc_ethdev.c b/drivers/net/sfc/sfc_ethdev.c
index 454b8956a..098038fbc 100644
--- a/drivers/net/sfc/sfc_ethdev.c
+++ b/drivers/net/sfc/sfc_ethdev.c
@@ -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;
 	}
diff --git a/drivers/net/sfc/sfc_rx.c b/drivers/net/sfc/sfc_rx.c
index 74218296c..7afd2c8b3 100644
--- a/drivers/net/sfc/sfc_rx.c
+++ b/drivers/net/sfc/sfc_rx.c
@@ -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;
 		}
-- 
2.24.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-stable] [dpdk-dev] [PATCH] net/sfc: fix log format specifiers
  2020-02-19 14:04 [dpdk-stable] [PATCH] net/sfc: fix log format specifiers Ferruh Yigit
@ 2020-02-19 14:11 ` Andrew Rybchenko
  2020-02-19 17:32   ` Ferruh Yigit
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Rybchenko @ 2020-02-19 14:11 UTC (permalink / raw)
  To: Ferruh Yigit, Andrew Rybchenko, Andy Moreton, Andrew Lee, Ivan Malov
  Cc: dev, stable

On 2/19/20 5:04 PM, Ferruh Yigit wrote:
> 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")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>

Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-stable] [dpdk-dev] [PATCH] net/sfc: fix log format specifiers
  2020-02-19 14:11 ` [dpdk-stable] [dpdk-dev] " Andrew Rybchenko
@ 2020-02-19 17:32   ` Ferruh Yigit
  0 siblings, 0 replies; 3+ messages in thread
From: Ferruh Yigit @ 2020-02-19 17:32 UTC (permalink / raw)
  To: Andrew Rybchenko, Andy Moreton, Andrew Lee, Ivan Malov; +Cc: dev, stable

On 2/19/2020 2:11 PM, Andrew Rybchenko wrote:
> On 2/19/20 5:04 PM, Ferruh Yigit wrote:
>> 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")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
> 
> Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
> 

Applied to dpdk-next-net/master, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-19 17:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-19 14:04 [dpdk-stable] [PATCH] net/sfc: fix log format specifiers Ferruh Yigit
2020-02-19 14:11 ` [dpdk-stable] [dpdk-dev] " Andrew Rybchenko
2020-02-19 17:32   ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).