patch 'examples/ptpclient: fix format specifier for port ID' has been queued to stable release 24.11.5

luca.boccassi at gmail.com luca.boccassi at gmail.com
Tue Mar 31 23:27:32 CEST 2026


Hi,

FYI, your patch has been queued to stable release 24.11.5

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 04/02/26. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/0d2546fca45bc89d072fcd0208fd4286da3b2a20

Thanks.

Luca Boccassi

---
>From 0d2546fca45bc89d072fcd0208fd4286da3b2a20 Mon Sep 17 00:00:00 2001
From: Aarnav JP <ajp at marvell.com>
Date: Fri, 27 Mar 2026 09:45:17 +0530
Subject: [PATCH] examples/ptpclient: fix format specifier for port ID

[ upstream commit 66309fc782da72b6a1db3c9674f29e19c5769393 ]

portid is uint16_t, use PRIu16 instead of PRIu8 to fix
format specifier mismatch warning with GCC 15.

../examples/ptpclient/ptpclient.c: In function 'main':
../examples/ptpclient/ptpclient.c:797:30:
warning: format '%hhu' expects argument of type 'unsigned char',
but argument 3 has type 'uint16_t' [-Wformat=]
  797 |    "Cannot init port %"PRIu8 "\n",
      |                         ^

Fixes: 47523597ff6c ("examples: fix port id type")

Signed-off-by: Aarnav JP <ajp at marvell.com>
Reviewed-by: David Marchand <david.marchand at redhat.com>
---
 examples/ptpclient/ptpclient.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/ptpclient/ptpclient.c b/examples/ptpclient/ptpclient.c
index 416363d8d0..1c30efb5e7 100644
--- a/examples/ptpclient/ptpclient.c
+++ b/examples/ptpclient/ptpclient.c
@@ -798,7 +798,7 @@ main(int argc, char *argv[])
 				ptp_enabled_port_nb++;
 			} else {
 				rte_exit(EXIT_FAILURE,
-					 "Cannot init port %"PRIu8 "\n",
+					 "Cannot init port %"PRIu16"\n",
 					 portid);
 			}
 		} else
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-03-31 22:26:25.095733091 +0100
+++ 0002-examples-ptpclient-fix-format-specifier-for-port-ID.patch	2026-03-31 22:26:24.870695778 +0100
@@ -1 +1 @@
-From 66309fc782da72b6a1db3c9674f29e19c5769393 Mon Sep 17 00:00:00 2001
+From 0d2546fca45bc89d072fcd0208fd4286da3b2a20 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 66309fc782da72b6a1db3c9674f29e19c5769393 ]
+
@@ -17 +18,0 @@
-Cc: stable at dpdk.org
@@ -26 +27 @@
-index c344e7db1e..174ca5dd70 100644
+index 416363d8d0..1c30efb5e7 100644
@@ -29 +30 @@
-@@ -794,7 +794,7 @@ main(int argc, char *argv[])
+@@ -798,7 +798,7 @@ main(int argc, char *argv[])


More information about the stable mailing list