From: Aarnav JP <ajp@marvell.com>
To: <dev@dpdk.org>, Volodymyr Fialko <vfialko@marvell.com>,
"Sergio Gonzalez Monroy" <sergio.gonzalez.monroy@intel.com>,
Reshma Pattan <reshma.pattan@intel.com>,
Declan Doherty <declan.doherty@intel.com>,
"Neil Horman" <nhorman@tuxdriver.com>
Cc: <jerinj@marvell.com>, <ndabilpuram@marvell.com>,
<rbhansali@marvell.com>, Aarnav JP <ajp@marvell.com>,
<stable@dpdk.org>
Subject: [PATCH 1/2] examples/packet_ordering: fix format specifier for port ID
Date: Fri, 27 Mar 2026 09:45:16 +0530 [thread overview]
Message-ID: <20260327041517.812223-1-ajp@marvell.com> (raw)
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")
Cc: stable@dpdk.org
Signed-off-by: Aarnav JP <ajp@marvell.com>
---
examples/packet_ordering/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/packet_ordering/main.c b/examples/packet_ordering/main.c
index 5ffdf72d71..748fe0826a 100644
--- a/examples/packet_ordering/main.c
+++ b/examples/packet_ordering/main.c
@@ -737,7 +737,7 @@ main(int argc, char **argv)
printf("Initializing port %u... done\n", port_id);
if (configure_eth_port(port_id) != 0)
- rte_exit(EXIT_FAILURE, "Cannot initialize port %"PRIu8"\n",
+ rte_exit(EXIT_FAILURE, "Cannot initialize port %"PRIu16"\n",
port_id);
}
--
2.43.0
next reply other threads:[~2026-03-27 4:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-27 4:15 Aarnav JP [this message]
2026-03-27 4:15 ` [PATCH 2/2] examples/ptpclient: fix format specifier for port ID Aarnav JP
2026-03-27 8:01 ` David Marchand
2026-03-27 8:08 ` David Marchand
2026-03-27 7:43 ` [PATCH 1/2] examples/packet_ordering: " David Marchand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260327041517.812223-1-ajp@marvell.com \
--to=ajp@marvell.com \
--cc=declan.doherty@intel.com \
--cc=dev@dpdk.org \
--cc=jerinj@marvell.com \
--cc=ndabilpuram@marvell.com \
--cc=nhorman@tuxdriver.com \
--cc=rbhansali@marvell.com \
--cc=reshma.pattan@intel.com \
--cc=sergio.gonzalez.monroy@intel.com \
--cc=stable@dpdk.org \
--cc=vfialko@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox