Hello,

On Fri, 27 Mar 2026 at 05:16, Aarnav JP <[email protected]> wrote:
>
> port_id is uint16_t, use PRIu16 instead of PRIu8 to fix
> format specifier mismatch warning with GCC 15.
>
> ../examples/packet_ordering/main.c: In function 'main':
> ../examples/packet_ordering/main.c:740:46:
> warning: format '%hhu' expects argument of type 'unsigned char',
> but argument 3 has type 'uint16_t' [-Wformat=]
>   740 |   rte_exit(EXIT_FAILURE, "Cannot initialize port %"PRIu8"\n",
>       |                                                     ^
>
> Fixes: 850f3733f840 ("examples/packet_ordering: new sample app")

At the time this code was introduced, port_id was a uint8_t.

This can be fixed when applying:
Fixes: f8244c6399d9 ("ethdev: increase port id range")


> Cc: [email protected]
>
> Signed-off-by: Aarnav JP <[email protected]>

Reviewed-by: David Marchand <[email protected]>

-- 
David Marchand

Reply via email to