examples/rxtx_callbacks: fix port ID format specifier
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Wed, 5 May 2021 21:54:35 +0000 (00:54 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 12 May 2021 19:46:05 +0000 (21:46 +0200)
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 <dmitry.kozliuk@gmail.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
examples/rxtx_callbacks/main.c

index b57b2fc..192521c 100644 (file)
@@ -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)