|
| 1 | +diff --git a/drivers/net/pcap/pcap_osdep_windows.c b/drivers/net/pcap/pcap_osdep_windows.c |
| 2 | +index 1d398dc7ed..0965c2f5c9 100644 |
| 3 | +--- a/drivers/net/pcap/pcap_osdep_windows.c |
| 4 | ++++ b/drivers/net/pcap/pcap_osdep_windows.c |
| 5 | +@@ -53,7 +53,7 @@ osdep_iface_index_get(const char *device_name) |
| 6 | + |
| 7 | + ret = GetAdapterIndex(adapter_name, &index); |
| 8 | + if (ret != NO_ERROR) { |
| 9 | +- PMD_LOG(ERR, "GetAdapterIndex(%S) = %lu\n", adapter_name, ret); |
| 10 | ++ PMD_LOG(ERR, "GetAdapterIndex(%S) = %lu", adapter_name, ret); |
| 11 | + return -1; |
| 12 | + } |
| 13 | + |
| 14 | +@@ -75,20 +75,20 @@ osdep_iface_mac_get(const char *device_name, struct rte_ether_addr *mac) |
| 15 | + |
| 16 | + sys_ret = GetAdaptersAddresses(AF_UNSPEC, 0, NULL, NULL, &size); |
| 17 | + if (sys_ret != ERROR_BUFFER_OVERFLOW) { |
| 18 | +- PMD_LOG(ERR, "GetAdapterAddresses() = %lu, expected %lu\n", |
| 19 | ++ PMD_LOG(ERR, "GetAdapterAddresses() = %lu, expected %lu", |
| 20 | + sys_ret, ERROR_BUFFER_OVERFLOW); |
| 21 | + return -1; |
| 22 | + } |
| 23 | + |
| 24 | + info = (IP_ADAPTER_ADDRESSES *)malloc(size); |
| 25 | + if (info == NULL) { |
| 26 | +- PMD_LOG(ERR, "Cannot allocate adapter address info\n"); |
| 27 | ++ PMD_LOG(ERR, "Cannot allocate adapter address info"); |
| 28 | + return -1; |
| 29 | + } |
| 30 | + |
| 31 | + sys_ret = GetAdaptersAddresses(AF_UNSPEC, 0, NULL, info, &size); |
| 32 | + if (sys_ret != ERROR_SUCCESS) { |
| 33 | +- PMD_LOG(ERR, "GetAdapterAddresses() = %lu\n", sys_ret); |
| 34 | ++ PMD_LOG(ERR, "GetAdapterAddresses() = %lu", sys_ret); |
| 35 | + free(info); |
| 36 | + return -1; |
| 37 | + } |
0 commit comments