Skip to content

Commit

Permalink
net/pcap: fix format string
Browse files Browse the repository at this point in the history
[ upstream commit 198aba3 ]

Use PRIu32 for uint32_t (found by -Wformat with Clang on Windows).

Fixes: a3f5252 ("net/pcap: enable infinitely Rx a pcap file")

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
  • Loading branch information
PlushBeaver authored and cpaelzer committed May 11, 2021
1 parent eed2d4c commit 38deda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/pcap/rte_eth_pcap.c
Expand Up @@ -802,7 +802,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,
Expand Down

0 comments on commit 38deda6

Please sign in to comment.