39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
From dee0abb3ec0a868c1f213165bd88c7a26c4ee253 Mon Sep 17 00:00:00 2001
|
|
From: Huisong Li <lihuisong@huawei.com>
|
|
Date: Sat, 6 Nov 2021 09:43:05 +0800
|
|
Subject: [PATCH 31/33] net/hns3: mark unchecked return of snprintf
|
|
|
|
Fixing the return value of the function to clear static warning.
|
|
|
|
Fixes: 1181500b2fc5 ("net/hns3: adjust MAC address logging")
|
|
Cc: stable@dpdk.org
|
|
|
|
Signed-off-by: Huisong Li <lihuisong@huawei.com>
|
|
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
|
|
---
|
|
drivers/net/hns3/hns3_common.c | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/drivers/net/hns3/hns3_common.c b/drivers/net/hns3/hns3_common.c
|
|
index c306e0b0e..9a47fbfbd 100644
|
|
--- a/drivers/net/hns3/hns3_common.c
|
|
+++ b/drivers/net/hns3/hns3_common.c
|
|
@@ -154,10 +154,10 @@ hns3_clock_gettime_ms(void)
|
|
void hns3_ether_format_addr(char *buf, uint16_t size,
|
|
const struct rte_ether_addr *ether_addr)
|
|
{
|
|
- snprintf(buf, size, "%02X:**:**:**:%02X:%02X",
|
|
- ether_addr->addr_bytes[0],
|
|
- ether_addr->addr_bytes[4],
|
|
- ether_addr->addr_bytes[5]);
|
|
+ (void)snprintf(buf, size, "%02X:**:**:**:%02X:%02X",
|
|
+ ether_addr->addr_bytes[0],
|
|
+ ether_addr->addr_bytes[4],
|
|
+ ether_addr->addr_bytes[5]);
|
|
}
|
|
|
|
static int
|
|
--
|
|
2.33.0
|
|
|