net/pcap: fix format string
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Sun, 14 Feb 2021 02:16:12 +0000 (05:16 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 2 Mar 2021 11:46:08 +0000 (12:46 +0100)
Use PRIu32 for uint32_t (found by -Wformat with Clang on Windows).

Fixes: a3f5252e5cbd ("net/pcap: enable infinitely Rx a pcap file")
Cc: stable@dpdk.org
Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/pcap/rte_eth_pcap.c

index 38b1fe2..2766745 100644 (file)
@@ -893,7 +893,7 @@ eth_rx_queue_setup(struct rte_eth_dev *dev,
 
                pcap_pkt_count = count_packets_in_pcap(pcap, pcap_q);
 
-               snprintf(ring_name, sizeof(ring_name), "PCAP_RING%" PRIu16,
+               snprintf(ring_name, sizeof(ring_name), "PCAP_RING%" PRIu32,
                                ring_number);
 
                pcap_q->pkts = rte_ring_create(ring_name,