Skip to content

Commit

Permalink
examples/rxtx_callbacks: fix port ID format specifier
Browse files Browse the repository at this point in the history
[ upstream commit 7861009 ]

This fixes -Wformat warning with clang 10.0.0 on Windows.

Fixes: f8244c6 ("ethdev: increase port id range")

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
  • Loading branch information
PlushBeaver authored and steevenlee committed Jun 8, 2021
1 parent fc88e04 commit b993ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/rxtx_callbacks/main.c
Expand Up @@ -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)
Expand Down

0 comments on commit b993ebf

Please sign in to comment.