patch 'examples/ptpclient: fix format specifier for port ID' has been queued to stable release 23.11.7
Shani Peretz
shperetz at nvidia.com
Wed Apr 15 12:00:22 CEST 2026
Hi,
FYI, your patch has been queued to stable release 23.11.7
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/19/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/shanipr/dpdk-stable
This queued commit can be viewed at:
https://github.com/shanipr/dpdk-stable/commit/fa647eb97549cb703917d858aac19a258e76e09b
Thanks.
Shani
---
>From fa647eb97549cb703917d858aac19a258e76e09b 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 ecc6e09765..ec3ac0f417 100644
--- a/examples/ptpclient/ptpclient.c
+++ b/examples/ptpclient/ptpclient.c
@@ -783,7 +783,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.43.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-04-14 14:44:36.437135890 +0300
+++ 0081-examples-ptpclient-fix-format-specifier-for-port-ID.patch 2026-04-14 14:44:28.848411000 +0300
@@ -1 +1 @@
-From 66309fc782da72b6a1db3c9674f29e19c5769393 Mon Sep 17 00:00:00 2001
+From fa647eb97549cb703917d858aac19a258e76e09b 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 ecc6e09765..ec3ac0f417 100644
@@ -29 +30 @@
-@@ -794,7 +794,7 @@ main(int argc, char *argv[])
+@@ -783,7 +783,7 @@ main(int argc, char *argv[])
More information about the stable
mailing list