From: Dmitry Kozlyuk Date: Wed, 5 May 2021 21:54:35 +0000 (+0300) Subject: examples/rxtx_callbacks: fix port ID format specifier X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7861009f7b2ca7a028ee7fe867c90cd5560de529;p=dpdk.git examples/rxtx_callbacks: fix port ID format specifier This fixes -Wformat warning with clang 10.0.0 on Windows. Fixes: f8244c6399d9 ("ethdev: increase port id range") Cc: stable@dpdk.org Signed-off-by: Dmitry Kozlyuk Acked-by: Tyler Retzlaff Acked-by: Stephen Hemminger --- diff --git a/examples/rxtx_callbacks/main.c b/examples/rxtx_callbacks/main.c index b57b2fc6bc..192521c3c6 100644 --- a/examples/rxtx_callbacks/main.c +++ b/examples/rxtx_callbacks/main.c @@ -329,7 +329,7 @@ main(int argc, char *argv[]) /* initialize all ports */ RTE_ETH_FOREACH_DEV(portid) if (port_init(portid, mbuf_pool) != 0) - rte_exit(EXIT_FAILURE, "Cannot init port %"PRIu8"\n", + rte_exit(EXIT_FAILURE, "Cannot init port %"PRIu16"\n", portid); if (rte_lcore_count() > 1)