patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH 1/2] net/hinic: fix snprintf length
@ 2020-03-06 12:00 Kevin Traynor
  2020-03-06 12:00 ` [dpdk-stable] [PATCH 2/2] net/hinic: fix repeating log and length check Kevin Traynor
  2020-03-06 12:06 ` [dpdk-stable] [PATCH v2 1/2] net/hinic: fix snprintf length Kevin Traynor
  0 siblings, 2 replies; 5+ messages in thread
From: Kevin Traynor @ 2020-03-06 12:00 UTC (permalink / raw)
  To: dev; +Cc: Kevin Traynor, stable, xuanziyang2, cloud.wangxiaoyun, zhouguoyang

Correct length and remove unecessary brackets.

Fixes: d9ce1917941c ("net/hinic/base: add hardware operation")
Cc: stable@dpdk.org

Signed-off-by: Kevin Traynor <ktraynor@redhat.com>

---
Cc: xuanziyang2@huawei.com
Cc: cloud.wangxiaoyun@huawei.com
Cc: zhouguoyang@huawei.com
---
 drivers/net/hinic/base/hinic_pmd_hwdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/hinic/base/hinic_pmd_hwdev.c b/drivers/net/hinic/base/hinic_pmd_hwdev.c
index 8b16897ad..b6c821a2a 100644
--- a/drivers/net/hinic/base/hinic_pmd_hwdev.c
+++ b/drivers/net/hinic/base/hinic_pmd_hwdev.c
@@ -1391,5 +1391,5 @@ static void print_cable_info(struct hinic_link_info *info)
 
 	memcpy(tmp_vendor, info->vendor_name, sizeof(info->vendor_name));
-	snprintf(tmp_str, (sizeof(tmp_str) - 1),
+	snprintf(tmp_str, sizeof(tmp_str),
 		 "Vendor: %s, %s, %s, length: %um, max_speed: %uGbps",
 		 tmp_vendor, info->sfp_type ? "SFP" : "QSFP", port_type,
-- 
2.21.1


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

end of thread, other threads:[~2020-03-09 16:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-06 12:00 [dpdk-stable] [PATCH 1/2] net/hinic: fix snprintf length Kevin Traynor
2020-03-06 12:00 ` [dpdk-stable] [PATCH 2/2] net/hinic: fix repeating log and length check Kevin Traynor
2020-03-06 12:06 ` [dpdk-stable] [PATCH v2 1/2] net/hinic: fix snprintf length Kevin Traynor
2020-03-06 12:06   ` [dpdk-stable] [PATCH v2 2/2] net/hinic: fix repeating log and length check Kevin Traynor
2020-03-09 16:00   ` [dpdk-stable] [PATCH v2 1/2] net/hinic: fix snprintf length 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).