Skip to contentSkip to conversation

examples/vm_power_manager: fix format specifier for port ID

PATCH Applied David Marchand 1 participant 2 messages Mar 27

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 examples/vm_power_manager: fix format specifier for port ID

Caught by code review, port_id is a uint16_t.

Fixes 20c78ac9ee23 ("examples/vm_power_mgr: add port initialisation")
---
 examples/vm_power_manager/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
examples/vm_power_manager/main.c +1 -1
index c141382020..ae9b326f4a 100644
@@ -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++) {
Signature · 1 line
2.53.0