[PATCH] examples/vm_power_manager: fix format specifier for port ID

David Marchand david.marchand at redhat.com
Fri Mar 27 09:06:59 CET 2026


Caught by code review, port_id is a uint16_t.

Fixes: 20c78ac9ee23 ("examples/vm_power_mgr: add port initialisation")
Cc: stable at dpdk.org

Signed-off-by: David Marchand <david.marchand at redhat.com>
---
 examples/vm_power_manager/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/vm_power_manager/main.c b/examples/vm_power_manager/main.c
index c141382020..ae9b326f4a 100644
--- a/examples/vm_power_manager/main.c
+++ b/examples/vm_power_manager/main.c
@@ -382,7 +382,7 @@ main(int argc, char **argv)
 
 			if (port_init(portid, mbuf_pool) != 0)
 				rte_exit(EXIT_FAILURE,
-					"Cannot init port %"PRIu8 "\n",
+					"Cannot init port %"PRIu16 "\n",
 					portid);
 
 			for (w = 0; w < RTE_POWER_MAX_VFS; w++) {
-- 
2.53.0



More information about the dev mailing list